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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4793d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4947a0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4947a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x2c]
lea esi, [eax + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
cmp edi, dword [esi + 0x10]
jbe 0x406ab2
call fcn.0045e79a
mov edx, dword [esi]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edi
lea esp, [esp]
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x406ad1
call fcn.0045e79a
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx]
test ecx, ecx
je 0x406adf
cmp ecx, eax
je 0x406ae8
call fcn.0045e79a
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x1c], edi
je 0x406d1b
test ecx, ecx
jne 0x406b51
call fcn.0045e79a
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 0x10]
jb 0x406b0b
call fcn.0045e79a
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
call fcn.00404280
mov dword [esp + 0x80], 0
mov edi, dword [esp + 0x18]
mov dword [esp + 0x34], esi
test edi, edi
jne 0x406b55
call fcn.0045e79a
xor eax, eax
add esi, 4
mov dword [esp + 0x30], esi
cmp esi, dword [eax + 0x10]
ja 0x406b60
test edi, edi
je 0x406b59
mov eax, dword [edi]
jmp 0x406b5b
mov eax, dword [ecx]
jmp 0x406afd
mov eax, dword [edi]
jmp 0x406b3d
xor eax, eax
cmp esi, dword [eax + 0xc]
jae 0x406b65
call fcn.0045e79a
mov dword [esp + 0x28], edi
lea esp, [esp]
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx + 0x10]
cmp dword [ebx + 0xc], edi
jbe 0x406b81
call fcn.0045e79a
mov ecx, dword [esp + 0x28]
mov eax, dword [ebx]
test ecx, ecx
je 0x406b8f
cmp ecx, eax
je 0x406b98
call fcn.0045e79a
mov ecx, dword [esp + 0x28]
cmp esi, edi
je 0x406cca
test ecx, ecx
jne 0x406c4a
call fcn.0045e79a
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x406bb9
call fcn.0045e79a
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x3c]
call fcn.00404280
cmp dword [esp + 0x50], 0x10
mov ecx, dword [esp + 0x3c]
jae 0x406bd4
lea ecx, [esp + 0x3c]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x4c]
mov eax, edi
cmp edi, ebx
jb 0x406be4
mov eax, ebx
cmp dword [esp + 0x6c], 0x10
mov edx, dword [esp + 0x58]
jae 0x406bf3
lea edx, [esp + 0x58]
call fcn.00401d10
test eax, eax
jne 0x406c09
cmp edi, ebx
jb 0x406c09
cmp edi, ebx
setne al
test eax, eax
je 0x406c55
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x406c51
call fcn.0045e79a
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x406c22
call fcn.0045e79a
add esi, 4
mov byte [esp + 0x80], 0
cmp dword [esp + 0x50], 0x10
jb 0x406b70
mov edx, dword [esp + 0x3c]
push edx
call fcn.004396bc
add esp, 4
jmp 0x406b70
mov eax, dword [ecx]
jmp 0x406baf
mov eax, dword [eax]
jmp 0x406c18
mov byte [esp + 0x80], 0
cmp dword [esp + 0x50], 0x10
jb 0x406c71
mov eax, dword [esp + 0x3c]
push eax
call fcn.004396bc
add esp, 4
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x406c81
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
sub eax, ecx
sar eax, 2
test eax, eax
jle 0x406ca9
add eax, eax
add eax, eax
push eax
push ecx
push eax
push esi
call fcn.0045e52f
add esp, 0x10
add dword [edi + 0x10], 0xfffffffc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
ja 0x406cb9
cmp esi, eax
jbe 0x406cbe
call fcn.0045e79a
mov ecx, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
jmp 0x406cef
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x406d17
call fcn.0045e79a
xor eax, eax
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 0x10]
jb 0x406ce7
call fcn.0045e79a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x6c], 0x10
jb 0x406ac0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004396bc
add esp, 4
jmp 0x406ac0
mov eax, dword [eax]
jmp 0x406cd9
mov edi, dword [ebx + 0xc]
cmp edi, dword [ebx + 0x10]
jbe 0x406d28
call fcn.0045e79a
mov ecx, ebx
mov esi, dword [ecx]
mov ebx, edi
mov edi, dword [ecx + 0x10]
mov dword [esp + 0x2c], ebx
cmp dword [ecx + 0xc], edi
jbe 0x406d43
call fcn.0045e79a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test esi, esi
je 0x406d4d
cmp esi, eax
je 0x406d56
call fcn.0045e79a
mov ecx, dword [esp + 0x14]
cmp ebx, edi
je 0x406dff
test esi, esi
jne 0x406d88
call fcn.0045e79a
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x406d73
call fcn.0045e79a
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x24], edx
test ecx, ecx
jne 0x406d8c
xor eax, eax
jmp 0x406d94
mov eax, dword [esi]
jmp 0x406d69
mov eax, dword [eax + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esp + 0x20]
mov edi, dword [edi + 0x10]
mov ebx, edi
sub ebx, ecx
sar ebx, 2
cmp ebx, eax
jae 0x406db4
mov dword [edi], edx
mov edx, dword [esp + 0x20]
add edi, 4
mov dword [edx + 0x10], edi
jmp 0x406dd6
cmp ecx, edi
jbe 0x406dbd
call fcn.0045e79a
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
push edi
push eax
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push edx
mov eax, ecx
call fcn.0040d260
test esi, esi
jne 0x406dfb
call fcn.0045e79a
xor eax, eax
mov ebx, dword [esp + 0x2c]
cmp ebx, dword [eax + 0x10]
jb 0x406def
call fcn.0045e79a
mov ecx, dword [esp + 0x14]
add ebx, 4
jmp 0x406d2e
mov eax, dword [esi]
jmp 0x406de1
mov esi, dword [ecx + 0x10]
cmp dword [ecx + 0xc], esi
jbe 0x406e10
call fcn.0045e79a
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0xc]
cmp edi, dword [ecx + 0x10]
jbe 0x406e27
call fcn.0045e79a
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push esi
push ebx
push edi
push eax
lea ebx, [esp + 0x38]
mov esi, ecx
call fcn.00436e10
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0045e1a6
mov esp, ebp
pop ebp
ret 4