Function at 0x40bce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x64], 0x124e6
mov dword [ebp - 0xc], 0xef09
mov dword [ebp - 0x20], 0xf82e
mov dword [ebp - 0x14], 0x25cb
mov dword [ebp - 0x50], 0x5683
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x3c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], 0
jmp 0x40bd66
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x18]
jae 0x40bed4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x10], 1
cmp byte [ebp - 1], 0
jne 0x40bd93
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x28], eax
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415902
add esp, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0041cd80
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040aef0
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x40bea1
mov edx, dword [0x4339a4]
mov dword [ebp - 0x24], edx
jmp 0x40be19
mov eax, dword [ebp - 0x24]
sub eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0xc]
jg 0x40be5c
mov edx, dword [ebp - 0x14]
imul edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0xc]
and edx, dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
sar eax, cl
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004016b0
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
jmp 0x40be10
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call fcn.004158fd
add esp, 4
cmp dword [ebp - 0x30], 0
jne 0x40be7d
mov dword [ebp - 0x54], 0
jmp 0x40be8a
mov dword [ebp - 8], 0x8123
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x58]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov eax, edx
jmp 0x40bed6
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004158fd
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x40bec2
mov dword [ebp - 0x60], 0
jmp 0x40becf
mov dword [ebp - 8], 0x8123
mov edx, dword [ebp - 8]
mov dword [ebp - 0x60], edx
jmp 0x40bd5d
xor eax, eax
mov esp, ebp
pop ebp
ret