Function at 0x403050
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4408f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454740]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push str..gamex.config.ini
lea ecx, [esp + 0x1c]
call fcn.004035d0
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4030f6
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.004029a0
lea ecx, [esp + 0x28]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.004078f0
add esp, 8
mov byte [esp + 0x34], 1
cmp dword [esp + 0x20], 0
jne 0x403125
mov byte [esp + 0x34], 0
mov eax, 0xfffffff0
mov edx, 0xfffffffc
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030f6
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40311e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40342f
call fcn.0040bfa1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40313f
push 0x80004005
call fcn.00401700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x34], 2
call fcn.0040bfa1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40316e
push 0x80004005
call fcn.00401700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x20]
push 0x2fa5
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.004029a0
lea ecx, [esp + 0x34]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.00407ac0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 4
call fcn.00402a10
mov byte [esp + 0x34], 3
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call section..text
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x2c]
add esp, 8
push 0x2c24
push 0
push ebp
lea edi, [ebx + 0xa8]
push edi
call fcn.0040c11d
push 0x24
push 1
push ebp
lea esi, [ebx + 0xa4]
push esi
call fcn.0040c11d
push 0x24
push 2
push ebp
add ebx, 0xb0
push ebx
call fcn.0040c11d
mov eax, dword [esp + 0x3c]
push 0x24
push 3
add eax, 0xac
push ebp
push eax
mov dword [esp + 0x38], eax
call fcn.0040c11d
cmp dword [edi], 0
jne 0x4032be
add ebp, 0xfffffff0
mov byte [esp + 0x34], 2
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403274
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov byte [esp + 0x34], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x34], 0
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 0x4030f6
push eax
jmp 0x4030ed
cmp dword [esi], 0
jne 0x4032e7
add ebp, 0xfffffff0
mov byte [esp + 0x34], 2
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403274
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
jmp 0x403274
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jl 0x40330a
push str.AppName
push eax
call fcn.0042a865
add esp, 8
test eax, eax
je 0x40330a
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
jne 0x403335
lea ecx, [esp + 0x24]
call fcn.00402b10
lea ecx, [esp + 0x1c]
call fcn.00402b10
lea ecx, [esp + 0x20]
call fcn.00402b10
lea ecx, [esp + 0x18]
call fcn.00402b10
xor eax, eax
jmp 0x40342f
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
call fcn.00403480
push eax
mov ecx, edi
mov byte [esp + 0x38], 5
call fcn.00402a10
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 3
call fcn.00402b10
mov ecx, str.Main
call fcn.00403450
cmp eax, 0xffffffff
je 0x40330a
push eax
lea edx, [esp + 0x40]
push edx
mov ecx, esi
call fcn.00403480
push eax
mov ecx, esi
mov byte [esp + 0x38], 6
call fcn.00402a90
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 3
call fcn.00402b10
mov ecx, str.MD5
mov esi, ebx
call fcn.00403450
cmp eax, 0xffffffff
je 0x40330a
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, ebx
call fcn.00403480
push eax
mov ecx, ebx
mov byte [esp + 0x38], 7
call fcn.00402a90
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 3
call fcn.00402b10
mov esi, dword [esp + 0x28]
mov ecx, str.Params
call fcn.00403450
test eax, eax
jle 0x403406
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, esi
call fcn.00403480
push eax
mov ecx, esi
mov byte [esp + 0x38], 8
call fcn.00402a90
lea ecx, [esp + 0x3c]
call fcn.00402b10
lea ecx, [esp + 0x24]
call fcn.00402b10
lea ecx, [esp + 0x1c]
call fcn.00402b10
lea ecx, [esp + 0x20]
call fcn.00402b10
lea ecx, [esp + 0x18]
call fcn.00402b10
mov eax, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4