Function at 0x418680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfb49
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x524a60]
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 edi, ecx
mov eax, dword [edi + 0x2c]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x40], ebx
test eax, eax
je 0x4189a5
mov ecx, dword [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4186e9
test dx, dx
je 0x4186e5
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4186e9
add ecx, 4
add eax, 4
test dx, dx
jne 0x4186c3
xor eax, eax
jmp 0x4186ee
sbb eax, eax
or eax, 1
test eax, eax
je 0x418987
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4189af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
push 0x82
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.0040ac20
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00418510
add esp, 8
or esi, 0xffffffff
test al, al
je 0x4187b3
lea eax, [edi + 0xe4]
mov dword [ebp - 0x10c], 0x418630
push eax
lea ecx, [ebp - 0x108]
call fcn.00406d90
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 2
push eax
call fcn.00417f10
add esp, 4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x108]
call fcn.00407340
mov ecx, dword [edi]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x418792
lea eax, [ebp - 0x38]
push eax
call fcn.0041bad0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x418968
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x418968
lea ecx, [ebp - 0x104]
call fcn.004096b0
mov byte [ebp - 4], 4
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x4189b9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebx]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
push dword [edi + 0x1a4]
push str._s_s.json
push eax
call fcn.00407c50
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
push dword [ebp - 0x3c]
call ebx
test eax, eax
je 0x418853
push dword [ebp - 0x40]
lea ecx, [ebp - 0x104]
call fcn.0040ad80
lea eax, [edi + 0x1a4]
push eax
lea ecx, [ebp - 0x104]
call fcn.0040b030
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x104]
call fcn.0040a720
test eax, eax
je 0x418853
push dword [ebp - 0x8c]
call ebx
test eax, eax
je 0x418853
push dword [ebp - 0x88]
call ebx
test eax, eax
jne 0x41887e
mov edx, dword [ebp - 0x3c]
mov eax, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418871
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x104]
call fcn.00404450
jmp 0x41889c
mov edx, dword [ebp - 0x3c]
mov eax, esi
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41889c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x1d4], 0x419230
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x1d0]
lea eax, [ebp - 0x104]
push eax
call fcn.00406d90
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 6
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404230
add eax, 0x10
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1d4]
mov byte [ebp - 4], 8
push eax
call fcn.00417de0
mov edx, dword [ebp - 0x114]
add esp, 8
mov dword [ebp - 0x14], eax
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418920
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1d0]
call fcn.00407340
mov ecx, dword [edi]
mov byte [ebp - 4], 9
test ecx, ecx
je 0x41893e
lea eax, [ebp - 0x38]
push eax
call fcn.0041bad0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41895d
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x104]
call fcn.00407340
mov edx, dword [ebp - 0x44]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x418987
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004a1588
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3