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

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push edi
mov edi, dword [esp + 0x8c]
mov eax, ecx
sub eax, edi
sar eax, 4
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push ebp
lea eax, [ecx - 0x10]
shl esi, 4
push eax
add esi, edi
push esi
push edi
call fcn.00404710
add esp, 0x10
cmp edi, esi
lea ebx, [esi + 0x10]
jae 0x404aab
lea eax, [esi - 0x10]
push esi
push eax
mov dword [esp + 0x18], eax
call ebp
add esp, 8
test al, al
jne 0x404aab
mov eax, dword [esp + 0x10]
push eax
push esi
call ebp
add esp, 8
test al, al
jne 0x404aab
mov esi, dword [esp + 0x10]
cmp edi, esi
jb 0x404a82
mov edi, dword [esp + 0x90]
cmp ebx, edi
jae 0x404ad3
push esi
push ebx
call ebp
add esp, 8
test al, al
jne 0x404ad3
push ebx
push esi
call ebp
add esp, 8
test al, al
jne 0x404ad3
add ebx, 0x10
cmp ebx, edi
jb 0x404ab6
mov ebp, esi
mov edi, ebx
mov dword [esp + 0x10], ebp
jmp 0x404ae0
cmp edi, dword [esp + 0x90]
jae 0x404b75
lea ecx, [ecx]
push edi
push esi
call dword [esp + 0x9c]
add esp, 8
test al, al
jne 0x404b63
push esi
push edi
call dword [esp + 0x9c]
add esp, 8
test al, al
jne 0x404b75
mov eax, ebx
mov edx, eax
mov ecx, dword [edx]
mov ebp, dword [edx + 4]
mov dword [esp + 0x68], ebp
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x70], edx
mov dword [esp + 0x6c], ebp
mov edx, edi
mov ebp, dword [edx]
mov dword [eax], ebp
mov ebp, dword [edx + 4]
mov dword [eax + 4], ebp
mov ebp, dword [edx + 8]
mov dword [eax + 8], ebp
mov edx, dword [edx + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x6c]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 8], edx
add ebx, 0x10
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x90]
add edi, 0x10
cmp edi, eax
jb 0x404af0
cmp ebp, dword [esp + 0x8c]
jbe 0x404c24
add ebp, 0xfffffff0
push esi
push ebp
call dword [esp + 0x9c]
add esp, 8
test al, al
jne 0x404bfc
push ebp
push esi
call dword [esp + 0x9c]
add esp, 8
test al, al
jne 0x404c19
sub esi, 0x10
mov edx, esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov edx, ebp
mov ecx, dword [edx]
mov eax, esi
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x18]
mov eax, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x8c]
sub eax, 0x10
sub ebp, 0x10
cmp ecx, eax
mov dword [esp + 0x10], eax
jb 0x404b85
mov ebp, dword [esp + 0x10]
cmp ebp, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
jne 0x404cf5
cmp edi, eax
je 0x404e17
cmp ebx, edi
je 0x404c8f
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x78], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
mov edx, ebx
mov ebp, dword [edx]
mov ecx, esi
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ecx + 8], ebp
mov edx, dword [edx + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x78]
mov ecx, ebx
mov dword [ecx], eax
mov eax, dword [esp + 0x7c]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x80]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov ecx, esi
mov edx, ecx
mov ebp, dword [edx]
mov dword [esp + 0x24], ebp
mov ebp, dword [edx + 4]
mov dword [esp + 0x28], ebp
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov eax, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebp
mov edx, eax
mov ebp, dword [edx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov ebp, dword [edx + 8]
mov dword [ecx + 8], ebp
mov edx, dword [edx + 0xc]
mov ebp, dword [esp + 0x10]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x30]
add ebx, 0x10
add edi, 0x10
mov dword [eax + 8], ecx
add esi, 0x10
mov dword [eax + 0xc], edx
jmp 0x404ae0
sub ebp, 0x10
cmp edi, eax
mov dword [esp + 0x10], ebp
jne 0x404dbb
sub esi, 0x10
cmp ebp, esi
je 0x404d5f
mov eax, ebp
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov eax, esi
mov edx, dword [eax]
mov ecx, ebp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x34]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [ecx], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, esi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
sub ebx, 0x10
mov ecx, ebx
mov eax, dword [ecx]
mov edx, esi
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x44]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov edx, ebx
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
jmp 0x404ae0
mov eax, edi
mov edx, eax
mov ecx, dword [edx]
mov dword [esp + 0x54], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov ecx, ebp
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, ebp
mov dword [edx], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], eax
add edi, 0x10
mov dword [edx + 0xc], ecx
jmp 0x404ae0
mov eax, dword [esp + 0x88]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], ebx
pop ebx
add esp, 0x74
ret