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

Disassembly:
push 0xffffffffffffffff
push 0x445fc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.0041f950
xor esi, esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x68], esi
call fcn.0041f060
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x450180
mov byte [esp + 0x78], 1
mov dword [esp + 0x34], esi
call fcn.0041f090
push ecx
mov byte [esp + 0x74], 2
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x4501b8
call fcn.0041f090
mov ecx, 0x4538d8
mov byte [esp + 0x74], 1
call fcn.004281e0
lea ecx, [esp + 0x40]
call fcn.0041f950
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call fcn.0041f060
sub esp, 0x10
lea ecx, [esp + 0x40]
mov eax, esp
mov dword [esp + 0x3c], esp
push 1
push ecx
push eax
mov ecx, 0x453878
mov byte [esp + 0x84], 4
mov byte [esp + 0x4c], 4
mov byte [esp + 0x4d], 2
mov byte [esp + 0x4e], 0xb2
mov byte [esp + 0x4f], 0
mov byte [esp + 0x50], 0xb4
call fcn.00402ab0
lea ecx, [esp + 0x50]
call fcn.0041fa00
xor bl, bl
sub esp, 0x10
mov ecx, 0x4538a0
mov edx, esp
mov dword [esp + 0x3c], esp
push 0x1e
push 0x40140000
push esi
push 3
push pe_nt_image_headers32
push edx
call fcn.00425570
lea ecx, [esp + 0x50]
call fcn.0041fa00
push ecx
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0041fd20
lea ecx, [esp + 0x20]
call fcn.0041f330
lea ecx, [esp + 0x1c]
call fcn.0041f4f0
test ax, ax
jg 0x4078b1
inc bl
cmp bl, 3
jb 0x407856
push 6
push 0x4502e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
mov byte [esp + 0x41], 2
mov byte [esp + 0x42], 0x12
mov byte [esp + 0x43], 0
mov byte [esp + 0x44], 0x14
call fcn.0041f090
push 0x40140000
push esi
push 7
push 0x78
mov ecx, 0x4538a0
mov byte [esp + 0x78], 5
call fcn.00424860
xor bl, bl
sub esp, 0x10
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0xfe
push edx
push ecx
mov ecx, 0x453878
call fcn.00402ab0
lea ecx, [esp + 0x60]
call fcn.0041fa00
push ecx
lea ecx, [esp + 0x54]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.0041fd20
lea ecx, [esp + 0x18]
call fcn.0041f330
lea ecx, [esp + 0x14]
call fcn.0041f4f0
test ax, ax
jle 0x407953
push 1
lea ecx, [esp + 0x18]
call fcn.0041f460
cmp al, 0xa2
je 0x4079bc
inc bl
cmp bl, 0xa
jb 0x4078f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 4
call fcn.0041f130
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call fcn.0041f130
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.0041f990
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0
call fcn.0041f130
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xffffffff
call fcn.0041f990
mov ax, 0xffca
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 8
mov edi, dword [esp + 0x74]
mov dword [esp + 0x18], esi
mov esi, 2
mov dword [esp + 0x20], esi
push esi
lea ecx, [esp + 0x18]
call fcn.0041f460
test al, al
je 0x407bfe
push esi
lea ecx, [esp + 0x18]
call fcn.0041f460
mov byte [esp + 0x28], al
mov ecx, 5
movsx eax, word [esp + 0x18]
add eax, 2
cdq
idiv ecx
test edx, edx
jne 0x407a0f
mov ecx, dword [esp + 0x18]
inc ecx
inc esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
push 5
call fcn.0041f470
mov esi, dword [edi + 8]
mov eax, dword [edi + 0xc]
sub eax, esi
mov ebp, esi
sar eax, 2
cmp eax, 1
jae 0x407b26
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x407a48
mov eax, esi
sub eax, ecx
sar eax, 2
cmp eax, 1
ja 0x407a4d
mov eax, 1
test ecx, ecx
jne 0x407a55
xor esi, esi
jmp 0x407a5a
sub esi, ecx
sar esi, 2
add eax, esi
test eax, eax
mov dword [esp + 0x2c], eax
jge 0x407a66
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.0043e092
mov esi, dword [edi + 4]
add esp, 4
cmp esi, ebp
mov dword [esp + 0x74], eax
mov ebx, eax
je 0x407a97
push esi
push ebx
call fcn.00401450
add esi, 4
add esp, 8
add ebx, 4
cmp esi, ebp
jne 0x407a83
lea edx, [esp + 0x10]
push edx
push ebx
call fcn.00401450
mov esi, dword [edi + 8]
add esp, 8
cmp ebp, esi
je 0x407ac3
add ebx, 4
push ebp
push ebx
call fcn.00401450
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, esi
jne 0x407aaf
mov ebx, dword [edi + 8]
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x407add
push 0
mov ecx, esi
call fcn.004014a0
add esi, 4
cmp esi, ebx
jne 0x407acd
mov eax, dword [edi + 4]
push eax
call fcn.0043d8b0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [eax + ecx*4]
mov dword [edi + 0xc], edx
mov edx, dword [edi + 4]
test edx, edx
jne 0x407b0f
xor ecx, ecx
mov dword [edi + 4], eax
lea ecx, [eax + ecx*4 + 4]
mov dword [edi + 8], ecx
jmp 0x407bd9
mov ecx, dword [edi + 8]
mov dword [edi + 4], eax
sub ecx, edx
sar ecx, 2
lea ecx, [eax + ecx*4 + 4]
mov dword [edi + 8], ecx
jmp 0x407bd9
mov edx, esi
sub edx, ebp
sar edx, 2
cmp edx, 1
jae 0x407b8a
cmp ebp, esi
mov eax, ebp
je 0x407b4b
lea ebx, [eax + 4]
push eax
push ebx
call fcn.00401450
mov eax, ebx
add esp, 8
cmp eax, esi
jne 0x407b38
mov ecx, dword [edi + 8]
mov eax, 1
mov edx, ecx
mov esi, ecx
sub edx, ebp
sar edx, 2
sub eax, edx
je 0x407b76
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00401450
add esp, 8
add esi, 4
dec ebx
jne 0x407b62
mov edx, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebp
call fcn.004013d0
add esp, 0xc
jmp 0x407bd5
lea ebx, [esi - 4]
mov dword [esp + 0x74], esi
cmp ebx, esi
je 0x407bb5
mov eax, dword [esp + 0x74]
push ebx
push eax
call fcn.00401450
mov edx, dword [esp + 0x7c]
add ebx, 4
add esp, 8
add edx, 4
cmp ebx, esi
mov dword [esp + 0x74], edx
jne 0x407b95
mov eax, dword [edi + 8]
push eax
add eax, 0xfffffffc
push eax
push ebp
call fcn.00401410
lea ecx, [esp + 0x1c]
lea edx, [ebp + 4]
push ecx
push edx
push ebp
call fcn.004013d0
add esp, 0x18
add dword [edi + 8], 4
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
inc esi
inc edx
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x18], edx
cmp si, 0x11
mov dword [esp + 0x20], esi
jl 0x4079cd
lea ecx, [esp + 0x10]
mov byte [esp + 0x68], 4
call fcn.0041f130
lea ecx, [esp + 0x1c]
mov byte [esp + 0x68], 3
call fcn.0041f130
lea ecx, [esp + 0x40]
mov byte [esp + 0x68], 1
call fcn.0041f990
lea ecx, [esp + 0x14]
mov byte [esp + 0x68], 0
call fcn.0041f130
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xffffffff
call fcn.0041f990
mov ax, word [esp + 0x24]
jmp 0x4079a7