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

Disassembly:
push 0xffffffffffffffff
push 0x4523a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0x4548d0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0x454ff8
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x2c], 1
lea edi, [edx + eax]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
add edx, eax
mov eax, dword [esp + 0x4c]
cmp eax, 3
mov dword [esp + 0x54], edx
ja case.0x40bd23.0
jmp dword [eax*4 + 0x40bfdc]
mov ebp, dword [esi + 0x78]
jmp 0x40bd32
mov ebp, dword [esi + 0x74]
mov eax, dword [esi + 0x1c]
push eax
push 1
push ecx
call dword [0x4540b8]
push eax
lea ecx, [esp + 0x20]
call fcn.00448a81
mov ebx, dword [esp + 0x38]
mov ecx, dword [esi + 0x1c]
push ecx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x2c]
mov eax, dword [esi + 0xc]
cmp eax, 1
je 0x40be32
cmp eax, 3
je 0x40be32
cmp eax, 4
je 0x40be32
cmp eax, 0xa
ja case.0x40bd7b.0
jmp dword [eax*4 + 0x40bfec]
mov eax, dword [esi + 0x18]
push eax
push 3
call dword [0x4540b4]
jmp 0x40bde0
mov eax, dword [esi + 0x18]
push eax
push 4
call dword [0x4540b4]
jmp 0x40bde0
mov eax, dword [esi + 0x18]
push eax
push 5
call dword [0x4540b4]
jmp 0x40bde0
mov eax, dword [esi + 0x18]
push eax
push 2
call dword [0x4540b4]
jmp 0x40bde0
mov eax, dword [esi + 0x18]
push eax
push 0
call dword [0x4540b4]
jmp 0x40bde0
mov eax, dword [esi + 0x18]
push eax
push 1
call dword [0x4540b4]
jmp 0x40bde0
mov eax, dword [esi + 0x1c]
push eax
call dword [0x4540b0]
push eax
lea ecx, [esp + 0x18]
call fcn.00448a81
lea edx, [esp + 0x1c]
mov ecx, ebx
push edx
call fcn.00448605
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00448605
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [0x4540ac]
mov eax, dword [ebx]
push 7
mov ecx, ebx
call dword [eax + 0x24]
mov edx, dword [ebx]
push 4
mov ecx, ebx
call dword [edx + 0x24]
cmp dword [esi + 0xc], 1
jne 0x40be58
test ebx, ebx
jne 0x40be40
xor eax, eax
jmp 0x40be43
mov eax, dword [ebx + 4]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push ecx
lea ecx, [esp + 0x40]
push edx
push ecx
push eax
mov ecx, esi
call fcn.0040c020
mov eax, dword [esi + 0xc]
cmp eax, 2
je 0x40be65
cmp eax, 3
jne 0x40be9f
test ebp, ebp
je 0x40be9f
test ebx, ebx
jne 0x40be71
xor eax, eax
jmp 0x40be74
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
push ecx
push edi
push ebp
push 0
lea edx, [esp + 0x64]
push 0
push edx
push eax
mov eax, dword [esp + 0x54]
push eax
call fcn.004266b0
mov ecx, dword [esp + 0x50]
push ecx
call dword [0x45409c]
cmp dword [esi + 0xc], 4
jne 0x40bf9b
test ebp, ebp
je 0x40bf9b
lea edx, [esp + 0x50]
push edx
push ebp
call fcn.00426ca0
test ebx, ebx
jne 0x40bec4
xor eax, eax
jmp 0x40bec7
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x50]
push 0
push ecx
push eax
call dword [0x4540a8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x10], eax
push edx
call dword [0x4540a4]
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov esi, dword [eax + 4]
mov edi, dword [eax + 8]
mov eax, dword [esp + 0x44]
sub eax, ecx
div esi
mov edx, dword [esp + 0x40]
mov ecx, eax
mov eax, dword [esp + 0x48]
sub eax, edx
xor edx, edx
div edi
inc ecx
mov dword [esp + 0x34], ecx
inc eax
test eax, eax
jle 0x40bf7f
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], eax
test ecx, ecx
jle 0x40bf6a
xor ebx, ebx
mov dword [esp + 0x4c], ecx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp]
push 0xcc0020
mov edx, dword [esp + 0x58]
push 0
push eax
mov eax, dword [esp + 0x44]
push ecx
push edi
push esi
mov ecx, dword [eax + 4]
push 0
push 0
push edi
push esi
push edx
push ebx
push ecx
call dword [0x4540a0]
mov eax, dword [esp + 0x4c]
add ebx, esi
dec eax
mov dword [esp + 0x4c], eax
jne 0x40bf2a
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
add edx, edi
dec eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
jne 0x40bf20
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 4]
push 0
push edx
push eax
call dword [0x4540a8]
mov ecx, dword [esp + 0x50]
push ecx
call dword [0x45409c]
mov esi, 0x4548e0
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 2
call fcn.00448ad8
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 3
call fcn.00448ad8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x28