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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x490
test ecx, ecx
je 0x416a00
mov ebx, edx
mov esi, ecx
mov ecx, dword [ecx]
mov eax, dword [esi + 4]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov edi, 0xfffffffe
test edx, edx
je 0x416a03
mov dword [esp + 4], ecx
mov dword [esp], eax
push ebx
call fcn.0043eec0
add esp, 4
test eax, eax
je 0x416a03
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x416929
push ecx
mov edi, eax
call fcn.0043e5b4
mov eax, edi
mov edi, 0xfffffffe
add esp, 4
mov dword [esi + 0x5c], 0
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov edx, eax
call fcn.00416e11
mov dword [esi + 0x5c], eax
test eax, eax
je 0x416a03
mov ecx, dword [esi + 0x14]
cmp ecx, 1
jne 0x416a0d
xor ecx, ecx
cmp dword [ebp + 8], 0
setne cl
shl ecx, 8
push ecx
push 0
push eax
push esi
call fcn.004122d8
add esp, 0x10
mov dword [esi + 0x58], eax
mov edi, 0xfffffffd
test eax, eax
js 0x416ccb
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
call fcn.00412d4c
add esp, 0xc
test eax, eax
je 0x416ccb
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa0], eax
movzx eax, word [esp + 0x46]
mov word [esi + 0xa8], ax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0x4e008], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x4e014], eax
mov dword [esi + 0x4e010], ecx
xor edi, edi
jmp 0x416a03
xor edi, edi
dec edi
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x50]
xor eax, eax
mov dword [esp + 8], ecx
and ecx, 0xf
mov dword [esp + 0x2c], ecx
setne al
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x58], ecx
xor ebx, ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x78], edx
mov dword [esp + 0x14], ecx
mov dword [esi + 0xa4], ecx
mov dword [esp + 0x10], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov word [esi + 0x9c], 0
shl eax, 3
mov word [esi + 0xa8], ax
mov dword [esi + 0x4e008], ebx
mov ecx, esi
call fcn.0041515b
mov edi, 0xfffffffc
cmp dword [esi + 0x48], ebx
je 0x416ccb
cmp dword [esp + 0xc], 2
jne 0x416ccb
mov edi, 0xfffffffb
bt dword [esp + 8], 0xa
jb 0x416ccb
mov ecx, esi
mov edx, dword [esp + 0x10]
push eax
push dword [esp + 0x18]
mov ebx, eax
call fcn.00415174
add esp, 8
mov edi, 0xfffffff9
test eax, eax
je 0x416ccb
lea eax, [esi + 0x80]
mov dword [esp + 8], eax
mov eax, ebx
xor ebx, ebx
mov ecx, dword [esp + 4]
mov dword [esp + 0xc], eax
add ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp]
adc eax, ebx
mov dword [esp], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
push ebx
call fcn.0043d455
add esp, 4
mov dword [esi + 0x4e014], edx
mov dword [esi + 0x4e010], eax
mov ecx, eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x1e]
push eax
call fcn.004150e4
add esp, 8
mov eax, 0xfffffffe
cmp eax, dword [esp + 4]
mov eax, 0
sbb eax, dword [esp]
jb 0x416b5c
xor eax, eax
jmp 0x416b60
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
xor edx, edx
push eax
push ebx
call fcn.0041520a
add esp, 8
movzx ecx, word [esp + 0x18]
mov dword [esp + 4], ecx
movzx ecx, word [esp + 0x1a]
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0xa8]
mov dword [esp], ecx
mov edx, 0xffff
mov dword [esp + 0x10], eax
and eax, edx
and edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
push dword [esp + 4]
push dword [esp + 0x18]
push 0x808
push dword [esp + 0xc]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.0041526e
add esp, 0x28
mov eax, dword [esi + 0x78]
add eax, dword [esp + 0xc]
adc ebx, dword [esi + 0x7c]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], ebx
push 0x1e
push dword [esp + 0xc]
push ebx
push eax
push ecx
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
mov eax, dword [esp + 0xc]
jne 0x416ccb
mov ebx, dword [esp + 0x10]
add eax, 0x1e
mov ecx, eax
mov eax, dword [esi + 0x7c]
add ecx, dword [esi + 0x78]
adc eax, 0
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov edi, dword [esp + 0x1c]
push edi
push dword [esi + 0x5c]
push eax
push ecx
push dword [esi + 0x44]
call dword [esi + 0x3c]
mov edx, edi
add esp, 0x14
mov edi, 0xfffffff8
cmp eax, edx
jne 0x416ccb
mov eax, dword [esi + 0x44]
mov dword [esp], eax
mov ecx, dword [esi + 0x7c]
mov edi, edx
mov edx, dword [esi + 0x78]
add edx, edi
mov edi, 0xfffffff8
adc ecx, 0
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], ecx
push ebx
lea eax, [esp + 0x34]
push eax
push ecx
push edx
push dword [esp + 0x10]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x416ccb
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x78]
add ecx, ebx
adc eax, 0
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4169fc
lea ebx, [esi + 0xb0]
mov dword [esi + 0xb0], esi
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xbc], eax
xor edi, edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc0], edi
push edi
push 0xfffffffffffffff1
push edx
call fcn.0040dd2a
add esp, 0xc
add esi, 0xc8
push eax
push ebx
push fcn.0041534a
push esi
call fcn.0040dd94
add esp, 0x10
jmp 0x416a03
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x416a03
push eax
call fcn.0043e5b4
add esp, 4
mov dword [esi + 0x5c], 0
jmp 0x416a03