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

Disassembly:
sub esp, 0x80
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
cmp ebx, ebp
jne 0x4161c0
lea eax, [ebp - 0x66]
pop edi
pop esi
pop ebp
add esp, 0x80
ret
mov eax, dword [ebx + 0x60]
add eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x14]
adc ecx, dword [ebx + 0x54]
mov esi, dword [ebx + 0x38]
cmp edx, ebp
je 0x4161e5
push ebp
push ecx
push eax
mov eax, dword [ebx + 0x20]
push esi
push eax
call edx
add esp, 0x14
jmp 0x4161fe
xor edx, edx
cmp eax, eax
jne 0x416202
cmp edx, ecx
jne 0x416202
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x30]
push ebp
push eax
push esi
push ecx
call edx
add esp, 0x10
cmp eax, ebp
je 0x416207
or ebp, 0xffffffff
jmp 0x416231
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0x1c]
push eax
mov esi, ebx
call fcn.00415330
add esp, 4
test eax, eax
je 0x416222
or ebp, 0xffffffff
jmp 0x416231
cmp dword [esp + 0x1c], 0x2014b50
je 0x416231
mov ebp, 0xffffff99
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x40]
push ecx
mov esi, ebx
call fcn.00415280
add esp, 4
test eax, eax
je 0x41624a
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x42]
push edx
call fcn.00415280
add esp, 4
test eax, eax
je 0x416261
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0x44]
push eax
call fcn.00415280
add esp, 4
test eax, eax
je 0x416278
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x46]
push ecx
call fcn.00415280
add esp, 4
test eax, eax
je 0x41628f
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x48]
push edx
call fcn.00415330
add esp, 4
test eax, eax
je 0x4162a6
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0x4c]
push eax
call fcn.00415330
add esp, 4
test eax, eax
je 0x4162bd
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0xc]
push ecx
call fcn.00415330
add esp, 4
test eax, eax
je 0x4162d4
or ebp, 0xffffffff
mov edx, dword [esp + 0xc]
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], 0
call fcn.00415330
add esp, 4
test eax, eax
je 0x4162fb
or ebp, 0xffffffff
mov ecx, dword [esp + 0xc]
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 0
call fcn.00415280
add esp, 4
test eax, eax
je 0x416322
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0x62]
push eax
call fcn.00415280
add esp, 4
test eax, eax
je 0x416339
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x64]
push ecx
call fcn.00415280
add esp, 4
test eax, eax
je 0x416350
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x20]
push edx
call fcn.00415280
add esp, 4
test eax, eax
je 0x416367
or ebp, 0xffffffff
movzx eax, word [esp + 0x20]
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x6c], eax
call fcn.00415280
add esp, 4
test eax, eax
je 0x416387
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x70]
push edx
call fcn.00415330
add esp, 4
test eax, eax
je 0x41639e
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0xc]
push eax
call fcn.00415330
add esp, 4
test eax, eax
je 0x4163b5
or ebp, 0xffffffff
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [esp + 0x80], cx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
test ebp, ebp
jne 0x416631
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
push 1
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push edx
mov edi, ebx
call fcn.004160b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x416631
push eax
mov eax, dword [esp + 0x66]
push eax
push ebp
lea ecx, [esp + 0x1c]
push ebp
push ecx
call fcn.004160b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x416631
cmp word [esp + 0x62], ax
je 0x416631
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41645c
mov esi, dword [ebx + 0x38]
push ebp
push eax
lea edx, [ebp + 1]
mov eax, ebx
call fcn.00417420
add esp, 8
test eax, eax
jne 0x416459
mov dword [esp + 0x10], eax
jmp 0x41645c
or ebp, 0xffffffff
cmp dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x38]
push eax
je 0x4164aa
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x10]
push edx
call eax
add esp, 8
mov ecx, edx
mov esi, eax
movzx eax, word [esp + 0x62]
cdq
cmp ecx, edx
ja 0x416489
jb 0x416486
cmp esi, eax
jae 0x416489
or ebp, 0xffffffff
sub esi, eax
sbb ecx, edx
push ecx
push esi
mov esi, dword [ebx + 0x38]
xor edx, edx
mov eax, ebx
call fcn.00417420
add esp, 8
test eax, eax
je 0x4164c6
or ebp, 0xffffffff
jmp 0x416631
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x2c]
push ecx
call edx
cdq
add esp, 8
cmp eax, 0xffffffff
jne 0x416472
test edx, edx
jne 0x416472
or esi, eax
or ecx, eax
jmp 0x416476
cmp ebp, 0xffffffff
je 0x416631
nop
movzx eax, word [esp + 0x62]
cmp dword [esp + 0x18], eax
jae 0x416631
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x24]
push ecx
mov esi, ebx
call fcn.00415280
add esp, 4
test eax, eax
je 0x4164f8
or ebp, 0xffffffff
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x14]
push edx
call fcn.00415280
add esp, 4
or esi, 0xffffffff
test eax, eax
je 0x416511
mov ebp, esi
cmp word [esp + 0x24], 1
jne 0x4165d4
mov eax, dword [esp + 0x14]
add eax, 4
add word [esp + 0x80], ax
cmp dword [esp + 0x58], esi
jne 0x416551
cmp dword [esp + 0x5c], 0
jne 0x416551
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x58]
push ecx
mov eax, ebx
call fcn.00415460
add esp, 4
test eax, eax
je 0x416551
mov ebp, esi
cmp dword [esp + 0x50], esi
jne 0x416576
cmp dword [esp + 0x54], 0
jne 0x416576
mov edi, dword [ebx + 0x38]
lea edx, [esp + 0x50]
push edx
mov eax, ebx
call fcn.00415460
add esp, 4
test eax, eax
je 0x416576
mov ebp, esi
cmp dword [esp + 0x30], esi
jne 0x4165b3
cmp dword [esp + 0x34], 0
jne 0x4165b3
mov edi, dword [ebx + 0x38]
lea eax, [esp + 0x28]
push eax
mov eax, ebx
call fcn.00415460
add esp, 4
test eax, eax
je 0x41659b
mov ebp, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
cmp dword [esp + 0x68], esi
jne 0x416617
mov edi, dword [ebx + 0x38]
lea ecx, [esp + 0x68]
push ecx
mov esi, ebx
call fcn.00415330
add esp, 4
test eax, eax
je 0x416617
or ebp, 0xffffffff
jmp 0x416617
movzx eax, word [esp + 0x14]
mov ecx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x38]
cdq
test ecx, ecx
je 0x4165f4
push 1
push edx
mov edx, dword [ebx + 0x20]
push eax
push edi
push edx
call ecx
add esp, 0x14
jmp 0x41660e
xor ecx, ecx
cmp eax, eax
jne 0x416615
cmp ecx, edx
jne 0x416615
mov ecx, dword [ebx + 0x30]
push 1
push eax
mov eax, dword [ebx + 0x20]
push edi
push eax
call ecx
add esp, 0x10
test eax, eax
je 0x416617
or esi, 0xffffffff
mov ebp, esi
movzx edx, word [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [eax + edx + 4]
mov dword [esp + 0x18], ecx
cmp ebp, 0xffffffff
jne 0x4164d0
mov edx, dword [esp + 0x68]
cmp edx, dword [ebx + 0x48]
jne 0x416646
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x3c], ecx
jmp 0x41664c
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
test ebp, ebp
jne 0x4166b3
mov edx, dword [esp + 0x64]
push 1
push edx
push ebp
lea eax, [esp + 0x1c]
push ebp
push eax
mov edi, ebx
call fcn.004160b0
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4166b3
cmp dword [esp + 0x90], eax
je 0x41668d
mov edi, dword [esp + 0x90]
mov ecx, 0x12
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x94]
test eax, eax
je 0x4166b3
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x80
ret