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

Disassembly:
push 0xffffffffffffffff
push 0x472930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xe8]
push edi
sub eax, dword [esi + 0x70]
push 0x1f6
mov byte [esp + 0x17], 0
mov dword [esp + 0x28], eax
mov dword [esi + 0x2c], 7
call fcn.0046bf4c
xor edi, edi
cmp eax, edi
je 0x417aa8
push 0x1f6
push eax
lea ecx, [esi + 0x38]
call fcn.00403cd0
mov ecx, dword [esi + 0xfc]
mov ebp, dword [esi + 0xec]
mov ebx, dword [esi + 0xf0]
mov eax, dword [esi + 0xf8]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov edi, dword [esi + 0xe8]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x54]
mov dword [esi + 0x48], 1
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], edi
call fcn.004139c0
shl edi, 2
push edi
mov dword [esp + 0x9c], 0
call fcn.0046b365
push edi
mov dword [esp + 0x20], eax
call fcn.0046b365
mov ecx, dword [esp + 0x1c]
mov edx, ecx
sub edx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
lea eax, [eax + edx*4]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x24]
add esp, 8
cmp eax, 4
jne 0x417ec6
push ecx
call fcn.0046b365
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
add edi, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
jbe 0x417c4d
mov eax, dword [esp + 0x40]
mov ecx, ebx
sub eax, ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x3c], eax
mov edi, edi
mov ecx, dword [esi + 0xec]
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x40]
add ecx, edi
push eax
call fcn.00421b80
mov edi, dword [esp + 0x40]
test edi, edi
mov byte [esp + 0x98], 1
je 0x417c04
cmp dword [edi + 8], 0xffffffff
jne 0x417bda
push 0
mov ecx, edi
call fcn.0042b800
test al, al
jne 0x417bda
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
lea eax, [edi + 0x28]
lea ecx, [esi + 0x20]
push eax
call fcn.00404670
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edx, ebx
mov byte [ecx + ebp], 1
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x34], eax
jmp 0x417c19
mov eax, dword [esp + 0x20]
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x38]
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x38], eax
test edi, edi
mov byte [esp + 0x98], 0
je 0x417c32
dec dword [edi + 4]
jne 0x417c32
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
inc ebp
add edx, 0x18
add ebx, 0x18
cmp ebp, eax
mov dword [esp + 0x30], edx
jb 0x417b80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.0044c500
mov edx, dword [esp + 0x20]
push edx
call fcn.0046b360
mov eax, dword [esi + 0x128]
add esp, 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [eax + 0x34]
call fcn.00431f10
mov eax, dword [esi + 0x128]
lea edx, [esp + 0x38]
push edx
lea ecx, [eax + 0x34]
call fcn.00437bf0
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
je 0x417e08
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x44]
jae 0x417e08
mov eax, dword [esi + 0x128]
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [eax + 0x34]
call fcn.00437cb0
mov eax, dword [esp + 0x40]
mov edi, dword [eax + 0x14]
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
mov dword [esp + 0x38], edi
call fcn.00421b80
mov ebx, dword [esp + 0x30]
cmp dword [ebx + 8], 0xffffffff
mov byte [esp + 0x98], 2
jne 0x417d83
push 0
mov ecx, ebx
call fcn.0042b800
test al, al
jne 0x417d83
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
mov ecx, dword [ebx + 0x28]
mov edi, dword [esi + 0x20]
lea ebp, [esi + 0x20]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x417d7a
mov edx, dword [edi + 0xc]
test edx, edx
lea ebx, [edi + 0xc]
jl 0x417d6a
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x417d6a
push eax
call fcn.004032c0
mov dword [esp + 0x40], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x417d5e
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0x10
mov dword [ebp], eax
jmp 0x417d76
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, ebp
call fcn.00401e20
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x1c]
mov dword [eax], edi
mov edi, dword [esp + 0x48]
add eax, 4
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x417dac
lea esp, [esp]
cmp dword [eax + 4], edi
je 0x417de1
mov eax, dword [eax + 8]
test eax, eax
jne 0x417da0
push 0xc
call fcn.0046b335
mov ecx, dword [esp + 0x74]
mov dword [ecx], eax
lea ecx, [eax + 8]
mov dword [esp + 0x74], ecx
mov byte [eax], 1
mov dword [eax + 4], edi
mov dword [ecx], 0
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
add esp, 4
inc ecx
inc eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 4]
dec eax
mov byte [esp + 0x98], 0
mov dword [ebx + 4], eax
jne 0x417dfa
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x38]
jne 0x417ca1
mov al, byte [esp + 0x13]
test al, al
je 0x417e43
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046b360
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046b360
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
mov dword [esi + 0x44], ecx
add esp, 8
lea ecx, [esp + 0x54]
mov dword [esi + 0x40], eax
call fcn.0040dc50
xor al, al
jmp 0x418009
mov eax, dword [esp + 0x24]
test eax, eax
je 0x417fa6
mov eax, dword [esi + 8]
lea edx, [esi + 0x120]
push edx
push eax
lea ecx, [esp + 0x5c]
call fcn.00413a20
test al, al
jne 0x417fa6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0046b360
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046b360
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 8]
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
mov eax, dword [edx]
add esp, 8
neg eax
sbb eax, eax
and eax, 6
push 0
add eax, 4
push 0x476b58
lea ecx, [esi + 0x20]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
call fcn.00401e20
lea ecx, [esp + 0x54]
call fcn.0040dc50
xor al, al
jmp 0x418009
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
jbe 0x417f93
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x34], eax
jmp 0x417ef2
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + ebp]
cmp dword [eax], 0
je 0x417f81
cmp dword [ebp], 0
je 0x417f81
lea edx, [esp + 0x48]
push edx
mov ecx, ebp
call fcn.00421b80
mov edi, dword [esp + 0x48]
cmp dword [edi + 8], 0xffffffff
mov byte [esp + 0x98], 3
jne 0x417f4f
push 0
mov ecx, edi
call fcn.0042b800
test al, al
jne 0x417f4f
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x1c], eax
lea eax, [edi + 0x28]
lea ecx, [esi + 0x20]
push eax
call fcn.00404670
mov eax, dword [esp + 0x3c]
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x38]
mov dword [ebx], ebp
mov dword [eax], ecx
add eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [edi + 4]
add ebx, 4
dec eax
mov byte [esp + 0x98], 0
mov dword [edi + 4], eax
jne 0x417f81
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x34]
add ebp, 0x18
dec eax
mov dword [esp + 0x34], eax
jne 0x417eee
sub ebx, dword [esp + 0x18]
sar ebx, 2
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0xb8]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00415020
mov bl, al
mov eax, dword [esp + 0x18]
push eax
call fcn.0046b360
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0046b360
add esp, 8
lea ecx, [esp + 0x54]
call fcn.0040dc50
test bl, bl
je 0x417ebf
mov al, 1
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 4