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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x470a30]
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 0x417b8e
mov ecx, eax
call fcn.00418730
cmp dword [esi + 0x10], 0
je 0x417b8e
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.00414780
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.00417d70
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.004174e0
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x4178f5
push dword [esp + 0x24]
call fcn.0044f00f
add esp, 4
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push eax
call fcn.00417eb0
lea ecx, [esp + 0x54]
test bl, bl
je 0x417983
cmp ecx, eax
je 0x417919
push 0xffffffffffffffff
push 0
push eax
call fcn.00414780
cmp dword [esp + 0x38], 8
jb 0x41792c
push dword [esp + 0x24]
call fcn.0044f00f
add esp, 4
lea ecx, [esp + 0x54]
call fcn.00417720
test al, al
jne 0x417947
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x14]
call fcn.00413c50
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00417d70
lea ecx, [esp + 0x3c]
cmp ecx, eax
je 0x417967
push 0xffffffffffffffff
push 0
push eax
call fcn.00414780
cmp dword [esp + 0x38], 8
jb 0x4178c4
push dword [esp + 0x24]
call fcn.0044f00f
add esp, 4
jmp 0x4178c4
cmp ecx, eax
je 0x417995
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
call fcn.00414780
cmp dword [esp + 0x38], 8
jb 0x4179a8
push dword [esp + 0x24]
call fcn.0044f00f
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4179e8
push 1
push 0x40d114
push eax
push 0
lea ecx, [esp + 0x64]
call fcn.00415620
test eax, eax
je 0x4179e8
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00417eb0
push eax
lea ecx, [esp + 0x14]
call fcn.00413c50
lea ecx, [esp + 0x24]
call fcn.00413b30
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x40]
call fcn.00417d70
lea ecx, [esp + 0x6c]
call fcn.00417470
cmp eax, 0xffffffff
je 0x417a4d
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.00414780
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
call fcn.00413bd0
cmp dword [esp + 0x38], 8
jb 0x417a4d
push dword [esp + 0x24]
call fcn.0044f00f
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 0x417ac5
cmp eax, 0xaaaaaaa
ja 0x417ba5
lea edi, [eax + eax*2]
shl edi, 3
push edi
call fcn.0044ef99
add esp, 4
test eax, eax
je 0x417baf
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.004188c0
add esp, 0xc
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
call fcn.00413b60
mov edi, dword [esp + 0x10]
test edi, edi
je 0x417af2
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push edi
call fcn.00414b00
push edi
call fcn.0044f00f
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x417b08
push dword [esp + 0x6c]
call fcn.0044f00f
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 0x417b35
push dword [esp + 0x54]
call fcn.0044f00f
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 0x417b5f
push dword [esp + 0x3c]
call fcn.0044f00f
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 0x417b8e
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.00414b00
push esi
call fcn.0044f00f
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453031
mov esp, ebp
pop ebp
ret 4
push 0x40d068
call fcn.0046be14
call fcn.0046bde3
int3