Function at 0x577150
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5fb9b3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
lea eax, [esp + 0x20]
push eax
call fcn.00409dd0
xor esi, esi
mov dword [esp + 0x23c], esi
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
cmp eax, esi
je 0x577549
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x23c], 1
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x23c], 2
cmp dword [ebx - 0xc], esi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x57723f
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], esi
jl 0x57723f
push 0x62ac30
push eax
call fcn.005d2e73
add esp, 8
cmp eax, esi
je 0x57723f
sub eax, dword [esp + 0x20]
sar eax, 1
cmp eax, 1
jne 0x57723f
lea eax, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.0040ab90
mov ebx, dword [esp + 0x18]
push ebx
call ebp
test eax, eax
jne 0x57723f
mov esi, edi
call fcn.004036c0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jne 0x5774dc
cmp dword [esp + 0x244], 0
jne 0x57733a
push 0x20a
lea ecx, [esp + 0x2a]
push 0
push ecx
mov word [esp + 0x30], 0
call fcn.005da970
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00403760
mov esi, dword [esp + 0x14]
push 0x5c
push esi
call fcn.005d37a2
add esp, 8
test eax, eax
je 0x5772dd
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x5772dd
add eax, 1
lea ecx, [esp + 0x1c]
mov edx, edi
call fcn.0041a270
mov byte [esp + 0x23c], 3
call fcn.0040ab90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 2
call fcn.00403870
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
je 0x57733a
lea eax, [esp + 0x14]
call fcn.00576f50
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x1c]
call fcn.0041eb50
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x23c], 4
call fcn.0040ab90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x23c], 2
call fcn.00403870
mov ebx, dword [esp + 0x18]
push ebx
call ebp
test eax, eax
jne 0x57733a
mov esi, edi
call fcn.004036c0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jne 0x5774dc
lea esi, [esp + 0x14]
call fcn.004036c0
lea esi, [esp + 0x1c]
call fcn.00576f90
lea edi, [esp + 0x14]
mov byte [esp + 0x23c], 5
call fcn.0040ab90
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x57738f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x577409
lea eax, [esp + 0x14]
call fcn.00576f50
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x1c]
call fcn.0041eb50
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x23c], 6
call fcn.0040ab90
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5773f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
push ebx
call ebp
test eax, eax
jne 0x577409
lea esi, [esp + 0x18]
call fcn.004036c0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
jne 0x5774dc
lea esi, [esp + 0x14]
call fcn.004036c0
lea esi, [esp + 0x1c]
call fcn.00577070
lea edi, [esp + 0x14]
mov byte [esp + 0x23c], 7
call fcn.0040ab90
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x57745e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 0
je 0x5774d8
lea eax, [esp + 0x14]
call fcn.00576f50
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ebx, [esp + 0x1c]
call fcn.0041eb50
add esp, 8
lea edi, [esp + 0x18]
mov byte [esp + 0x23c], 8
call fcn.0040ab90
mov byte [esp + 0x23c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5774c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x18]
push ebx
call ebp
test eax, eax
jne 0x5774d8
lea esi, [esp + 0x18]
call fcn.004036c0
mov ebx, dword [esp + 0x18]
cmp dword [ebx - 0xc], 0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x5774f4
push ebx
call ebp
test eax, eax
je 0x5774f4
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x5774fd
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov esi, eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x23c], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x577521
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x23c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x577549
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x23c], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x577574
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x22c
ret