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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44d738
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x45a050]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00411df0
mov eax, dword [edi + 0x40]
mov dword [esi + 0x100], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x104], eax
movzx eax, byte [edi + 0x5e]
mov byte [esi + 0xf8], al
cmp byte [esi + 0xf8], 0
movzx eax, byte [edi + 0x5f]
mov byte [esi + 0xf9], al
jne 0x416900
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x64]
mov ebx, dword [edi + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x70]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x74]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x44]
add ecx, 0x20
adc eax, 0
cmp dword [esp + 0x18], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], eax
mov dword [esi + 0x140], 0x20
mov dword [esi + 0x144], 0
mov byte [esi + 0x148], 0
jl 0x416900
jg 0x4165a6
test edx, edx
jb 0x416900
mov ecx, dword [esp + 0x24]
cmp ecx, 0x40000000
ja 0x416900
jb 0x4165c0
test ebx, ebx
jne 0x416900
mov eax, ebx
or eax, ecx
mov dword [edi + 0x78], 0x20
mov dword [edi + 0x7c], 0
jne 0x41660e
or edx, dword [esp + 0x18]
jne 0x416900
mov byte [esi + 0x148], 1
mov eax, dword [edi + 0x78]
mov dword [esi + 0x138], eax
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x13c], eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x14c], 0
movzx eax, byte [esi + 0x148]
mov dword [esp + 0x20], 1
cmove eax, dword [esp + 0x20]
mov byte [esi + 0x148], al
add dword [edi + 0x78], ebx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x50], edx
adc dword [edi + 0x7c], ecx
mov dword [esp + 0x14], ebx
add dword [esp + 0x14], edx
mov edx, ecx
mov ecx, dword [esp + 0x14]
adc edx, eax
mov dword [edi + 0x54], eax
add ecx, 0x20
mov eax, edx
adc eax, 0
mov dword [esi + 0x140], ecx
mov dword [esi + 0x144], eax
mov ecx, dword [edi + 0x48]
sub ecx, dword [esi + 0x108]
mov eax, dword [edi + 0x4c]
sbb eax, dword [esi + 0x10c]
cmp eax, edx
ja 0x4166a1
jb 0x416681
cmp ecx, dword [esp + 0x14]
jae 0x4166a1
mov byte [esi + 0x14b], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
push 0
mov ecx, dword [eax]
push 1
push dword [esp + 0x20]
push dword [esp + 0x38]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x416905
xor ecx, ecx
cmp ebx, ebx
jne 0x4168e6
cmp ecx, dword [esp + 0x24]
jne 0x4168e6
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4166fa
push eax
call fcn.0044108a
mov ebx, eax
mov eax, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], 0
mov ecx, dword [edi]
push eax
mov edx, ebx
call fcn.0041aa10
mov dword [esp + 0x2c], eax
test eax, eax
je 0x416736
push ebx
call fcn.004411c8
mov eax, dword [esp + 0x30]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x45f620
push dword [esp + 0x20]
mov edx, ebx
or ecx, 0xffffffff
call dword [0x45f610]
not eax
cmp eax, dword [esp + 0x34]
je 0x416757
call fcn.00412cc0
cmp byte [esi + 0x14c], 0
jne 0x416767
mov byte [esi + 0x149], 1
mov word [esp + 0x30], 0
push 0
mov byte [esp + 0x54], 1
push dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ebx
push edi
call fcn.00412d50
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov ecx, edi
mov byte [esp + 0x50], 2
call fcn.00412c60
cmp eax, 1
jne 0x4167b5
test edx, edx
je 0x416891
cmp eax, 0x17
jne 0x416752
test edx, edx
jne 0x416752
lea eax, [esp + 0x38]
push eax
lea eax, [esi + 0x118]
push eax
push dword [esi + 0x10c]
mov ecx, edi
push dword [esi + 0x108]
call fcn.00415580
mov dword [esp + 0x34], eax
test eax, eax
je 0x416819
lea ecx, [esp + 0x38]
call fcn.004088d0
lea ecx, [esp + 0x2c]
call fcn.00412d00
push ebx
call fcn.004411c8
mov eax, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x416853
lea ecx, [esp + 0x38]
call fcn.004088d0
lea ecx, [esp + 0x2c]
call fcn.00412d00
push ebx
call fcn.004411c8
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 1
jbe 0x41685d
call fcn.00412cc0
lea ecx, [esp + 0x2c]
call fcn.00412d00
mov eax, dword [esp + 0x38]
push 0
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax]
push edi
call fcn.00412d50
mov ecx, edi
call fcn.00412c60
cmp eax, 1
jne 0x416752
test edx, edx
jne 0x416752
mov byte [esi + 0x148], 1
mov eax, dword [edi + 0x78]
mov dword [esi + 0x138], eax
mov eax, dword [edi + 0x7c]
push esi
mov ecx, edi
mov dword [esi + 0x13c], eax
call fcn.00415a70
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.004088d0
lea ecx, [esp + 0x2c]
call fcn.00412d00
push ebx
call fcn.004411c8
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x8007000e
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4