Function at 0x41b560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4114
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x66a344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b4], ecx
push 0x5f6f38
lea ecx, [ebp - 0x230]
call fcn.00404a20
mov dword [ebp - 4], 0
movzx eax, byte [0x6784d0]
test eax, eax
je 0x41b6af
push str.download_game_id:
lea ecx, [ebp - 0x230]
call fcn.00404f00
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.004ac380
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2cc], esp
lea edx, [ebp - 0x218]
push edx
call fcn.00404a20
mov dword [ebp - 0x2d0], eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00412cf0
add esp, 0x1c
mov dword [ebp - 0x2d4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00404a90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
call fcn.00404a90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x278]
push ecx
lea edx, [ebp - 0x290]
push edx
lea eax, [ebp - 0x2a8]
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004050a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x290]
call fcn.00404b90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.00404b90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a8]
call fcn.00404b90
jmp 0x41b82b
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 0x2b4]
mov ecx, dword [eax + 0x14]
call fcn.00417ea0
mov dword [ebp - 0x2bc], eax
mov ecx, dword [ebp - 0x2bc]
call fcn.00408040
test eax, eax
jbe 0x41b6e5
mov dword [ebp - 0x2b8], 1
jmp 0x41b6ef
mov dword [ebp - 0x2b8], 0
mov cl, byte [ebp - 0x2b8]
mov byte [ebp - 0x2a9], cl
lea ecx, [ebp - 0x2f0]
call fcn.00404c20
movzx edx, byte [ebp - 0x2a9]
test edx, edx
je 0x41b82b
push str.gkfjgkfjg:
lea ecx, [ebp - 0x230]
call fcn.00404f00
lea ecx, [ebp - 0x260]
call fcn.00404a90
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2b4]
mov ecx, dword [ecx + 0x14]
call fcn.00417ea0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x2b0]
push edx
lea ecx, [ebp - 0x2c8]
call fcn.0041a830
jmp 0x41b775
push 0
lea eax, [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00404fd0
lea ecx, [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00412a10
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0041c460
movzx edx, al
test edx, edx
je 0x41b7fb
lea ecx, [ebp - 0x2b0]
call fcn.00404f70
push eax
lea ecx, [ebp - 0x260]
call fcn.004050a0
push 1
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2e4]
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00412a10
mov ecx, eax
call fcn.0041c4c0
push eax
lea ecx, [ebp - 0x2b0]
call fcn.0041c460
movzx edx, al
test edx, edx
je 0x41b7f6
push 0x5f6f78
lea ecx, [ebp - 0x260]
call fcn.00416700
jmp 0x41b761
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c8]
call fcn.00404c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00404b90
call fcn.0040bad0
mov ecx, eax
call fcn.00413d10
push eax
lea ecx, [ebp - 0x248]
call fcn.00404a20
mov byte [ebp - 4], 6
push 0x5f6f7c
lea ecx, [ebp - 0x248]
call fcn.00416700
lea ecx, [ebp - 0x248]
call fcn.00406b50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b8b9
lea ecx, [ebp - 0x230]
call fcn.00406dd0
movzx ecx, al
test ecx, ecx
jne 0x41b8a5
push 0
push 0
lea ecx, [ebp - 0x230]
call fcn.00406b50
push eax
lea ecx, [ebp - 0x248]
call fcn.00406b50
push eax
call fcn.00441584
add esp, 0x10
jmp 0x41b8b9
lea ecx, [ebp - 0x248]
call fcn.00406b50
push eax
call fcn.0044158d
add esp, 4
mov ecx, dword [ebp - 0x2b4]
sub ecx, 0x3a4
call fcn.00467c72
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00404b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00404b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c1bd
mov esp, ebp
pop ebp
ret