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

Disassembly:
push 0xffffffffffffffff
push 0x460658
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x480208]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call fcn.0042b725
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4095df
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x36]
push 0x28
push esi
mov dword [esp + 0x28], 0
call fcn.00418cc0
lea ebp, [edi + 0x14]
push 0x14
push ebp
call fcn.00418cc0
lea ebx, [edi + 0x2e]
push 8
push ebx
call fcn.00418cc0
push 0x28
push esi
mov esi, dword [esp + 0x4c]
push esi
call fcn.00444680
lea ecx, [esp + 0x38]
push esi
push ecx
mov byte [esi + 0x28], 0
call fcn.004033c0
add esp, 0x2c
lea ecx, [esp + 0x14]
call fcn.00409210
lea ecx, [esp + 0x14]
call fcn.00409260
mov eax, dword [esp + 0x14]
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x409653
mov esi, dword [esp + 0x30]
push 0x14
push ebp
push esi
call fcn.00444680
lea edx, [esp + 0x20]
push esi
push edx
mov byte [esi + 0x14], 0
call fcn.004033c0
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00409210
lea ecx, [esp + 0x14]
call fcn.00409260
mov eax, dword [esp + 0x14]
sub esi, eax
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x409696
mov esi, dword [esp + 0x34]
push 8
push ebx
push esi
call fcn.00444680
lea eax, [esp + 0x20]
push esi
push eax
mov byte [esi + 8], 0
call fcn.004033c0
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00409210
lea ecx, [esp + 0x14]
call fcn.00409260
mov ebx, dword [esp + 0x14]
mov eax, ebx
sub esi, ebx
jmp 0x4096e0
mov cl, byte [eax]
mov byte [esi + eax], cl
add eax, 1
test cl, cl
jne 0x4096e0
test word [edi + 0xac], 0x400
je 0x409705
mov eax, dword [edi + 0xc8]
mov ecx, dword [edi + 0xcc]
jmp 0x40970a
mov eax, dword [edi + 0x78]
xor ecx, ecx
mov edx, dword [esp + 0x38]
mov dword [edx], eax
mov dword [edx + 4], ecx
movzx ecx, word [edi + 0xd4]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x7000
jne 0x409745
and ecx, 7
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x3c]
imul eax, dword [edi + 0xea]
add eax, eax
mov dword [ecx], eax
jmp 0x40974f
mov edx, dword [esp + 0x3c]
mov dword [edx], 0x200
movzx eax, word [edi + 0x1b2]
mov ecx, dword [esp + 0x40]
mov word [ecx], ax
cmp word [edi + 0x1b2], 0x401
sbb edx, edx
add edx, 1
cmp word [edi + 0x1b2], 0xffff
sbb eax, eax
neg eax
test eax, edx
je 0x4097c3
test byte [edi + 0x152], 1
mov esi, dword [esp + 0x44]
je 0x40978f
mov dword [esi], 1
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.00408050
add esp, 8
test al, al
je 0x4097a8
or dword [esi], 2
mov eax, dword [esi]
test eax, eax
je 0x4097c3
mov cx, word [edi + 0x76]
and cx, 0x5000
cmp cx, 0x5000
jne 0x4097c3
or eax, 4
mov dword [esi], eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4097e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret