Function at 0x405310
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov dword [ebp - 4], 0
jmp 0x405335
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x12
jge 0x405352
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax*4 + section..data]
mov dword [ecx + edx*4], eax
jmp 0x40532c
mov dword [ebp - 4], 0
jmp 0x405364
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 4
jge 0x4053ab
mov dword [ebp - 8], 0
jmp 0x40537c
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x100
jge 0x4053a9
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 4]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov eax, dword [eax + esi*4 + 0x6ba048]
mov dword [ecx + edx*4], eax
jmp 0x405373
jmp 0x40535b
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4053c4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x12
jge 0x405436
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 8]
add eax, 1
cdq
idiv dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + edx]
mov byte [ebp - 0x12], dl
mov eax, dword [ebp - 8]
add eax, 2
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx]
mov byte [ebp - 0x13], cl
mov eax, dword [ebp - 8]
add eax, 3
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov cl, byte [eax + edx]
mov byte [ebp - 0x14], cl
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
xor edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 8]
add eax, 4
cdq
idiv dword [ebp + 0xc]
mov dword [ebp - 8], edx
jmp 0x4053bb
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
jmp 0x405455
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x12
jge 0x40548a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004048e0
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [ecx + edx*4 + 4], eax
jmp 0x40544c
mov dword [ebp - 4], 0
jmp 0x40549c
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 4
jge 0x4054fc
mov dword [ebp - 8], 0
jmp 0x4054b4
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x100
jge 0x4054fa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.004048e0
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp - 0xc]
add edx, dword [eax + 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
jmp 0x4054ab
jmp 0x405493
pop esi
mov esp, ebp
pop ebp
ret 0xc