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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, 1
mov edx, ecx
cmp dword [ecx + 0x78], 0
mov esi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edx
jne 0x416af2
or dword [ebp + 0x14], 0xfffffffc
nop dword [eax + eax]
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x4168a5
mov ecx, eax
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416860
mov edx, dword [edx + 0x1c]
sub ecx, edi
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x416870
sub edx, edi
lea eax, [ecx + 1]
add eax, edx
push eax
call fcn.0042f8b9
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x1c]
push dword [ebp + 0xc]
push str._s_s
push edi
call fcn.00406100
mov eax, dword [ebp - 4]
add esp, 0x14
mov dword [eax + 0x20], edi
jmp 0x4168df
inc dword [ebx + 0x3c]
mov ecx, dword [edx + 0x1c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4168b0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.0042f8b9
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ecx + 0x20], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [esi + 0x20]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x4168d1
mov ecx, dword [ebp + 0x18]
lea edi, [esi + 0x68]
mov eax, dword [ebp + 0x14]
and dword [esi + 0x40], eax
mov dword [esi + 0x2c], ebx
mov eax, dword [ecx]
and eax, 1
or eax, 4
cmp dword [esi + 0x34], 0
mov dword [edi], eax
je 0x416907
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x14], eax
mov dword [ebx + 0x1c], esi
mov eax, dword [ebx + 0x24]
mov dword [eax], esi
lea eax, [esi + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x18], eax
inc dword [ebx + 0x38]
mov eax, dword [esi + 0x38]
sub eax, 7
je 0x416a59
sub eax, 2
je 0x416a02
sub eax, 0xa
jne 0x416a63
mov ecx, dword [esi + 0x20]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416940
sub ecx, edx
lea eax, [ecx + 2]
push eax
call fcn.0042f8b9
push dword [esi + 0x20]
mov dword [ebp - 0xc], eax
push 0x48750c
push eax
call fcn.00406100
mov eax, dword [ebx + 0x30]
add esp, 0x10
mov edi, dword [ebx + 0x34]
mov ecx, ebx
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x68]
mov dword [ebx + 0x30], 0
push eax
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
add eax, dword [ebp + 0x10]
push eax
push dword [ebp - 0xc]
push dword [esi + 0x4c]
call fcn.00416820
mov ecx, dword [esi + 0x4c]
mov edx, eax
mov dword [esi + 0x60], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [ecx + 0x44]
mov dword [esi + 0x44], ecx
mov ecx, dword [esi + 0x68]
and ecx, 2
or dword [eax], ecx
mov ecx, dword [esi + 0x68]
or ecx, 0xfffffffb
and dword [eax], ecx
mov eax, edx
mov ecx, dword [ebx + 0x34]
neg eax
sub ecx, edi
dec ecx
add ecx, edx
and ecx, eax
test byte [esi + 0x68], 2
mov dword [esi + 0x58], ecx
je 0x4169da
cmp edx, 4
mov eax, 4
cmovb edx, eax
mov dword [ebp - 8], edx
mov edi, dword [ebp - 8]
dec edx
mov eax, dword [ebp - 0x14]
not edx
push dword [ebp - 0xc]
dec eax
lea ecx, [edi - 1]
add eax, edi
add ecx, dword [ebx + 0x30]
and eax, edx
and ecx, edx
add ecx, eax
mov dword [ebx + 0x30], ecx
call fcn.0042f876
add esp, 4
jmp 0x416a77
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x34], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
push edi
push 0
and eax, 0xfffffffb
or eax, 2
mov dword [ecx], eax
mov ecx, ebx
or dword [edi], 1
push 0
push dword [esi + 0x20]
push dword [esi + 0x4c]
call fcn.00416820
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx + 0x58]
cmp eax, dword [ecx + 0x5c]
je 0x416a42
and dword [edi], 0xfffffffb
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0xc]
add eax, 3
and eax, 0xfffffffc
add eax, 0xc
mov dword [ebx + 0x30], eax
jmp 0x416a77
mov eax, dword [ecx]
and eax, 0xfffffffb
or eax, 2
mov dword [ecx], eax
mov edx, dword [esi + 0x5c]
mov eax, edx
mov ecx, dword [ebx + 0x30]
neg eax
dec ecx
add ecx, edx
and ecx, eax
add ecx, edx
mov dword [ebx + 0x30], ecx
mov ecx, dword [esi + 0x60]
mov edi, ecx
cmp dword [ebp - 0x10], ecx
cmovae edi, dword [ebp - 0x10]
cmp dword [esi + 0x38], 0x13
je 0x416ad7
mov eax, dword [ebx + 0x34]
dec eax
add eax, ecx
neg ecx
and eax, ecx
mov dword [ebx + 0x34], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x58]
add dword [ebx + 0x34], eax
mov eax, dword [esi + 0x48]
add eax, dword [ebp + 0x10]
cmp dword [esi + 0x44], eax
je 0x416ab0
mov eax, dword [ebp + 0x18]
and dword [eax], 0xfffffffb
mov eax, dword [esi + 0x40]
test al, 3
je 0x416ad7
test al, 1
je 0x416aca
mov eax, dword [ebx + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], esi
mov eax, dword [eax + 0x40]
test al, 2
je 0x416ad7
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x10], eax
mov dword [ebx + 0x18], esi
mov esi, dword [esi]
mov ecx, dword [ebp + 8]
cmp esi, ecx
je 0x416b17
cmp dword [esi + 0x78], 0
mov edx, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], esi
je 0x416850
mov eax, dword [ecx + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x4c], ecx
test byte [eax], 4
je 0x416b11
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x78], eax
mov esi, dword [esi]
cmp esi, ecx
jne 0x416af2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14