Function at 0x4178c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e3e0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43b050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.00417e80
lea eax, [ebp - 0x10]
push eax
lea edi, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0041a930
add esp, 4
mov byte [ebp - 4], 1
cmp dword [0x43e578], 0
je 0x417934
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x417b5c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx - 0xc], 0
mov dword [ebp - 0x1c], 1
je 0x417b45
mov ecx, dword [ebp - 0x10]
mov ebx, dword [0x43011c]
push ecx
call ebx
mov esi, dword [esi + 0x18]
mov ecx, dword [ebp - 0x10]
mov edi, ecx
test esi, esi
je 0x417b18
cmp word [esi], 0
je 0x417b18
test ecx, ecx
je 0x417b18
cmp word [ecx], 0
je 0x417b18
push esi
call fcn.00401010
add esp, 4
test eax, eax
jne 0x4179c6
mov dword [ebp - 0x18], vtable.CBindStatusCallback.0
push edi
mov byte [ebp - 4], 2
call ebx
lea edx, [ebp - 0x18]
push edx
push 0
push edi
push esi
push 0
call dword [0x43c2c0]
test eax, eax
jne 0x417b15
push edi
call dword [0x430208]
test eax, eax
je 0x417b15
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00419cc0
add esp, 4
push eax
mov eax, dword [ebp + 8]
add eax, 0x1c
call fcn.0041a9f0
mov bl, al
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417a05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x417b2e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esi, dword [0x430070]
push 1
push ecx
push edx
call esi
test eax, eax
jne 0x417a9a
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x14]
call dword [0x430104]
and eax, 3
push eax
push edi
push str._s._d
lea edi, [ebp - 0x18]
call fcn.00404190
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add esp, 0xc
push 1
push edi
push eax
call esi
test eax, eax
je 0x417a71
push 4
push 0
push edi
call esi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 1
push ecx
push edx
call esi
test eax, eax
jne 0x417a8e
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [0x43011c]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401540
mov edi, dword [ebp + 8]
add edi, 0x30
lea eax, [ebp - 0x14]
call fcn.004033b0
push 0x3ef
call fcn.00407370
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417ad8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417afe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x10]
lea eax, [ecx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x417b5c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x43011c]
push 0x3f0
call fcn.00407370
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417b68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417b8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4