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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489d76
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4bca04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x90], 0
mov dword [ebp - 0x8c], 0
je 0x416fbb
mov ebx, dword [esi + 0x98]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 4]
mov edi, ebx
mov dword [ebp - 0x8c], 1
mov ecx, edi
mov dword [ebp - 0x90], edi
mov eax, dword [edi]
call dword [eax + 4]
jmp 0x417004
push 1
mov dword [ebp - 4], 0
call fcn.004596fa
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x90], edi
mov eax, dword [edi]
call dword [eax + 4]
mov dword [ebp - 0x8c], 0
test edi, edi
je 0x416ffe
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x416ffe
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov ebx, dword [ebp - 0x90]
test byte [ebp - 0x8c], 1
je 0x417026
test ebx, ebx
je 0x417026
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x417026
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 1
push eax
call fcn.004139a0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov edx, dword [edi]
mov byte [ebp - 0x8c], al
call dword [edx + 8]
test eax, eax
je 0x417069
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 3
imul eax, eax, 0xeeeeeeef
test eax, eax
jne 0x4170ae
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
call fcn.00416c30
push eax
push dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00418130
lea ecx, [ebp - 0x88]
call fcn.004164d0
jmp 0x417191
mov ebx, dword [ebp + 8]
cmp ebx, eax
jbe 0x4170e8
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x88]
call fcn.00416c30
push eax
push ebx
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.00416cd0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.004164d0
sub esp, 8
lea ecx, [esi + 0xc]
call fcn.004183e0
test ebx, ebx
je 0x417191
xor edx, edx
nop dword [eax]
mov eax, dword [esi]
add eax, edx
mov dword [eax], 0xffffffff
lea edi, [eax + 4]
mov dword [eax + 0x68], 0xffffffff
mov dword [eax + 0x6c], 0x7fffffff
mov dword [eax + 0x70], 0
cmp dword [eax + 0x18], 0x10
jb 0x41712b
mov edi, dword [eax + 4]
mov dword [eax + 0x14], 0
mov byte [edi], 0
lea edi, [eax + 0x1c]
cmp dword [eax + 0x30], 0x10
jb 0x417141
mov edi, dword [eax + 0x1c]
mov cl, byte [ebp - 0x8c]
add edx, 0x78
mov dword [eax + 0x2c], 0
mov byte [edi], 0
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 6
mov dword [eax + 0x44], 0
mov byte [eax + 0x48], cl
mov dword [eax + 0x4c], 0x201
mov dword [eax + 0x54], 0
mov dword [eax + 0x50], 0
sub ebx, 1
jne 0x417100
cmp dword [esi + 0x40], 0x10
jb 0x4171a6
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x3c], 0
mov byte [eax], 0
jmp 0x4171b1
mov dword [esi + 0x3c], 0
mov byte [esi + 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004612e1
mov esp, ebp
pop ebp
ret 4