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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x47ca30]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
push ebx
push esi
mov esi, ecx
push edi
test eax, eax
je 0x4180ce
mov ecx, eax
call fcn.00418c70
cmp dword [esi + 0x10], 0
je 0x4180ce
xor eax, eax
mov dword [esp + 0x10], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
call fcn.00414e30
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.004182b0
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.00417a40
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x417e35
push dword [esp + 0x24]
call fcn.0045ad4d
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.004183f0
lea ecx, [esp + 0x54]
test bl, bl
je 0x417ec3
cmp ecx, eax
je 0x417e59
push 0xffffffffffffffff
push 0
push eax
call fcn.00414e30
cmp dword [esp + 0x38], 8
jb 0x417e6c
push dword [esp + 0x24]
call fcn.0045ad4d
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00417c80
test al, al
jne 0x417e87
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.00414300
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.004182b0
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x417ea7
push 0xffffffffffffffff
push 0
push eax
call fcn.00414e30
cmp dword [esp + 0x38], 8
jb 0x417e04
push dword [esp + 0x24]
call fcn.0045ad4d
add esp, 4
jmp 0x417e04
cmp ecx, eax
je 0x417ed5
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00414e30
cmp dword [esp + 0x38], 8
jb 0x417ee8
push dword [esp + 0x24]
call fcn.0045ad4d
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x417f28
push 1
push 0x40d244
push eax
push 0
lea ecx, [esp + 0x64]
call fcn.00415c90
test eax, eax
je 0x417f28
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.004183f0
push eax
lea ecx, [esp + 0x14]
call fcn.00414300
lea ecx, [esp + 0x24]
call fcn.004141e0
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.004182b0
lea ecx, [esp + 0x6c]
call fcn.004179d0
cmp eax, 0xffffffff
je 0x417f8d
inc eax
mov dword [esp + 0x38], 7
xor ecx, ecx
mov dword [esp + 0x34], 0
push eax
push ecx
lea eax, [esp + 0x74]
mov word [esp + 0x2c], cx
push eax
lea ecx, [esp + 0x30]
call fcn.00414e30
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00414280
cmp dword [esp + 0x38], 8
jb 0x417f8d
push dword [esp + 0x24]
call fcn.0045ad4d
add esp, 4
mov ebx, dword [esp + 0x14]
mov eax, 0x2aaaaaab
mov esi, dword [esp + 0x10]
mov ecx, ebx
sub ecx, esi
mov dword [esp + 0x10], 0
imul ecx
mov dword [esp + 0x14], 0
sar edx, 2
mov eax, edx
mov dword [esp + 0x18], 0
shr eax, 0x1f
add eax, edx
je 0x418005
cmp eax, 0xaaaaaaa
ja 0x4180e5
lea edi, [eax + eax*2]
shl edi, 3
push edi
call fcn.0045acd7
add esp, 4
test eax, eax
je 0x4180ef
push dword [esp + 0x1c]
lea ecx, [eax + edi]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ecx
mov ecx, eax
push esi
push ebx
call fcn.00418e00
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00414210
mov edi, dword [esp + 0x10]
test edi, edi
je 0x418032
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push edi
call fcn.004151b0
push edi
call fcn.0045ad4d
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x418048
push dword [esp + 0x6c]
call fcn.0045ad4d
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
cmp dword [esp + 0x68], 8
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
jb 0x418075
push dword [esp + 0x54]
call fcn.0045ad4d
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
cmp dword [esp + 0x50], 8
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
jb 0x41809f
push dword [esp + 0x3c]
call fcn.0045ad4d
add esp, 4
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
test esi, esi
je 0x4180ce
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.004151b0
push esi
call fcn.0045ad4d
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045ed71
mov esp, ebp
pop ebp
ret 4
push 0x40d198
call fcn.00477d6f
call fcn.00477d3e
int3