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

Disassembly:
sub esp, 0xac
mov ecx, dword [esp + 0xc4]
push ebx
push ebp
push esi
mov esi, dword [esp + 0xcc]
push edi
mov edi, dword [esp + 0xdc]
mov eax, edi
sub eax, ecx
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [esp + 0xd8]
lea edx, [edi - 1]
push edx
mov edx, dword [esp + 0xcc]
push eax
sar ebx, 1
add ebx, ecx
push ebx
push esi
push ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xd8]
push esi
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xf0]
mov dword [eax + 4], edx
mov dword [esp + 0x50], edi
mov dword [eax + 8], ecx
call fcn.00460d90
mov eax, esi
lea ecx, [ebx + 1]
add esp, 0x24
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0xd4], ebx
jae 0x4609bf
lea eax, [esp + 0x10]
call fcn.00413720
mov ebp, eax
lea edi, [ebx - 1]
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call fcn.00413720
mov ecx, eax
mov eax, ebp
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x4609bf
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edi
call fcn.00413720
mov ebp, eax
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, eax
mov eax, ebp
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x4609bf
mov ebx, edi
jmp 0x460943
mov ebp, dword [esp + 0x1c]
cmp ebp, dword [esp + 0xdc]
jae 0x460a23
lea eax, [esp + 0x10]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x18]
call fcn.00413720
mov ecx, eax
mov eax, edi
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x460a23
lea eax, [esp + 0x18]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, eax
mov eax, edi
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x460a23
inc ebp
mov dword [esp + 0x1c], ebp
jmp 0x4609c3
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
mov ebp, ebx
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0x24], eax
jae 0x460af0
lea eax, [esp + 0x20]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, eax
mov eax, edi
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x460ae1
lea eax, [esp + 0x10]
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x20]
call fcn.00413720
mov ecx, eax
mov eax, edi
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x460af0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, edx
inc edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], edx
mov dword [esp + 0xb4], ecx
call fcn.00413720
mov edi, eax
lea eax, [esp + 0xb0]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
inc dword [esp + 0x24]
jmp 0x460a31
cmp ebp, dword [esp + 0xd4]
jbe 0x460bda
lea eax, [esp + 0x10]
call fcn.00413720
mov dword [esp + 0x38], eax
mov eax, esi
lea edi, [ebp - 1]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x9c], edi
call fcn.00413720
mov ecx, eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x460bcc
mov eax, esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x5c], edi
call fcn.00413720
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
call fcn.00413720
mov ecx, eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xc4]
call fcn.0045fd80
test al, al
jne 0x460bd3
mov eax, esi
dec ebx
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], ebx
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x40]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
mov ebp, edi
jmp 0x460af0
cmp ebp, dword [esp + 0xd4]
jne 0x460c83
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0xdc]
je 0x460d68
mov eax, dword [esp + 0x1c]
cmp eax, ecx
je 0x460c35
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa8]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ebx
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x78]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
inc dword [esp + 0x1c]
mov ecx, edx
inc edx
mov dword [esp + 0x24], edx
mov edx, ebx
mov dword [esp + 0x48], eax
inc ebx
lea eax, [esp + 0x48]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x50]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
jmp 0x460a31
mov edx, dword [esp + 0x24]
dec ebp
cmp edx, dword [esp + 0xdc]
jne 0x460d20
dec ebx
mov dword [esp + 0x14], ebx
cmp ebp, ebx
je 0x460ccd
lea eax, [esp + 0x60]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], ebp
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x70]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x80], edx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], ebx
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x90]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
jmp 0x460a31
mov eax, dword [esp + 0x20]
mov ecx, edx
inc edx
mov dword [esp + 0x28], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x24], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x2c], ecx
call fcn.00413720
mov edi, eax
lea eax, [esp + 0x28]
call fcn.00413720
mov esi, eax
call fcn.00461380
mov esi, dword [esp + 0x10]
jmp 0x460a31
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop ebx
add esp, 0xac
ret