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

Disassembly:
push 0xffffffffffffffff
push 0x419480
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f050]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor esi, esi
push 4
mov dword [esp + 0x1c], esi
call fcn.0040a53d
add esp, 4
cmp eax, esi
je 0x407823
lea ecx, [esp + 0x28]
mov dword [eax], ecx
jmp 0x407825
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
push 4
mov dword [esp + 0x7c], 1
call fcn.0040a53d
add esp, 4
cmp eax, esi
je 0x407853
lea edx, [esp + 0x40]
mov dword [eax], edx
jmp 0x407855
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x5c]
mov bl, 3
push ecx
mov byte [esp + 0x80], bl
call fcn.00407b60
add esp, 8
push eax
lea eax, [esp + 0x2c]
mov byte [esp + 0x7c], 4
call fcn.00408840
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x4078a7
push eax
call fcn.00409d80
add esp, 4
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call fcn.00409d80
mov eax, dword [esp + 0x88]
add esp, 4
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.00407b60
add esp, 8
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x7c], 5
call fcn.00408840
mov byte [esp + 0x78], bl
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x4078f9
push eax
call fcn.00409d80
add esp, 4
mov edx, dword [esp + 0x58]
push edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
call fcn.00409d80
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x38]
mov eax, ebx
mov ecx, ebp
sub eax, edx
sub ecx, edi
sar eax, 2
sar ecx, 2
add esp, 4
cmp eax, ecx
jae 0x4079a2
mov dword [esp + 0x14], ecx
jge 0x407a17
mov edi, ecx
mov dword [esp + 0x1c], esi
sub edi, eax
cmp edx, esi
jne 0x40794e
xor eax, eax
jmp 0x407957
mov eax, dword [esp + 0x54]
sub eax, edx
sar eax, 2
mov ecx, ebx
sub ecx, edx
sar ecx, 2
cmp ecx, eax
jae 0x40796d
mov dword [ebx], esi
add ebx, 4
mov dword [esp + 0x50], ebx
jmp 0x407993
cmp edx, ebx
jbe 0x407976
call fcn.0040ab6b
mov eax, dword [esp + 0x40]
push ebx
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x50]
call fcn.00408b70
mov ebx, dword [esp + 0x50]
sub edi, 1
mov edx, dword [esp + 0x4c]
jne 0x407946
mov ebp, dword [esp + 0x38]
jmp 0x407a13
cmp ecx, eax
mov dword [esp + 0x14], eax
jge 0x407a17
mov ebx, eax
mov dword [esp + 0x1c], esi
sub ebx, ecx
jmp 0x4079b8
mov edi, dword [esp + 0x34]
cmp edi, esi
jne 0x4079c0
xor eax, eax
jmp 0x4079c9
mov eax, dword [esp + 0x3c]
sub eax, edi
sar eax, 2
mov ecx, ebp
sub ecx, edi
sar ecx, 2
cmp ecx, eax
jae 0x4079e0
mov dword [ebp], esi
add ebp, 4
mov dword [esp + 0x38], ebp
jmp 0x407a06
cmp edi, ebp
jbe 0x4079e9
call fcn.0040ab6b
mov eax, dword [esp + 0x28]
push ebp
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x38]
call fcn.00408b70
mov ebp, dword [esp + 0x38]
sub ebx, 1
jne 0x4079b4
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
cmp dword [esp + 0x14], 0
jle 0x407ae5
mov ecx, ebp
sub ecx, edi
sar ecx, 2
cmp esi, ecx
jb 0x407a42
call fcn.0040ab6b
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, ebx
sub ecx, edx
sar ecx, 2
lea eax, [edi + esi*4]
mov dword [esp + 0x1c], eax
cmp esi, ecx
jb 0x407a69
call fcn.0040ab6b
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
cmp ecx, dword [edx + esi*4]
jg 0x407ad3
mov eax, ebp
sub eax, edi
sar eax, 2
cmp esi, eax
jb 0x407a94
call fcn.0040ab6b
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, ebx
sub eax, edx
sar eax, 2
lea ecx, [edi + esi*4]
mov dword [esp + 0x1c], ecx
cmp esi, eax
jb 0x407abb
call fcn.0040ab6b
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
cmp eax, dword [edx + esi*4]
jl 0x407add
inc esi
cmp esi, dword [esp + 0x14]
jl 0x407a22
jmp 0x407ae5
mov dword [esp + 0x18], 1
jmp 0x407ae5
mov dword [esp + 0x18], 0xffffffff
test edx, edx
je 0x407af2
push edx
call fcn.00409d80
add esp, 4
mov ecx, dword [esp + 0x40]
xor eax, eax
push ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.00409d80
mov eax, dword [esp + 0x38]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x407b20
push eax
call fcn.00409d80
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call fcn.00409d80
mov eax, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret