Function at 0x426390
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d83f
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5ef220]
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 ebx, ecx
mov dword [ebp - 0x42c], 0
mov dword [ebx + 0x2b4], 0
mov dword [ebx + 0x2b0], 0
push 0x10
mov byte [ebp - 0x422], 0
mov dword [ebx + 0x2b8], 0
mov dword [ebx + 0x2bc], 0
mov dword [ebx + 0x2c0], 0
mov dword [ebx + 0x2c4], 0
mov dword [ebx + 0x2c8], 0
mov dword [ebx + 0x2cc], 0
mov dword [ebx + 0x2d0], 0
mov dword [ebx + 0x2d4], 0
call fcn.00430e8a
add esp, 4
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x42645b
mov ecx, eax
call fcn.00438094
mov esi, eax
jmp 0x42645d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push 0
mov dword [ebx + 0x2ac], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0043893b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055c960
add esp, 0xc
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push eax
lea eax, [ebp - 0x216]
push eax
call fcn.0055c960
mov eax, dword [0x5fba6c]
add esp, 0xc
add eax, 4
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00558864
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x218]
push str.GamePatch
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00558864
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call edi
push str.res.dat
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42659f
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.0040f690
mov dword [ebp - 4], 1
mov dword [ebp - 0x42c], 1
mov eax, dword [0x5fb938]
test al, 1
jne 0x426583
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
lea eax, [ebp - 0x428]
mov ecx, 0x5fb728
push eax
call fcn.004249e0
mov byte [ebp - 0x421], 1
test al, al
jne 0x4265a6
mov byte [ebp - 0x421], 0
mov dword [ebp - 4], 0xffffffff
test byte [ebp - 0x42c], 1
je 0x4265d6
mov edx, dword [ebp - 0x428]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4265d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x4269b8
mov eax, dword [0x5fb938]
test al, 1
jne 0x426601
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_00.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x42663c
mov eax, dword [0x5fb938]
test al, 1
jne 0x426632
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_00.png
call fcn.00424a90
mov dword [ebx + 0x2b8], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x426660
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_01.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x42669b
mov eax, dword [0x5fb938]
test al, 1
jne 0x426691
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_01.png
call fcn.00424a90
mov dword [ebx + 0x2bc], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x4266bf
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_02.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x4266fa
mov eax, dword [0x5fb938]
test al, 1
jne 0x4266f0
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_02.png
call fcn.00424a90
mov dword [ebx + 0x2c0], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x42671e
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_03.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x426759
mov eax, dword [0x5fb938]
test al, 1
jne 0x42674f
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_03.png
call fcn.00424a90
mov dword [ebx + 0x2c4], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x42677d
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_04.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x4267b8
mov eax, dword [0x5fb938]
test al, 1
jne 0x4267ae
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_04.png
call fcn.00424a90
mov dword [ebx + 0x2c8], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x4267dc
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_05.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x426817
mov eax, dword [0x5fb938]
test al, 1
jne 0x42680d
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_05.png
call fcn.00424a90
mov dword [ebx + 0x2cc], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x42683b
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_06.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x426876
mov eax, dword [0x5fb938]
test al, 1
jne 0x42686c
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_06.png
call fcn.00424a90
mov dword [ebx + 0x2d0], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x42689a
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_07.png
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x4268d5
mov eax, dword [0x5fb938]
test al, 1
jne 0x4268cb
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push str.Skin_wnd_07.png
call fcn.00424a90
mov dword [ebx + 0x2d4], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x4268f9
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push 0x5cb1a0
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x426934
mov eax, dword [0x5fb938]
test al, 1
jne 0x42692a
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push 0x5cb1a0
call fcn.00424a90
mov dword [ebx + 0x2b4], eax
mov eax, dword [0x5fb938]
test al, 1
jne 0x426958
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push 0x5cb1b8
mov ecx, 0x5fb728
call fcn.00424b40
test eax, eax
jne 0x426993
mov eax, dword [0x5fb938]
test al, 1
jne 0x426989
or eax, 1
push 0x58cea0
mov dword [0x5fb938], eax
call fcn.00559e6b
add esp, 4
push 0x5cb1b8
call fcn.00424a90
cmp dword [ebx + 0x2b4], 0
mov dword [ebx + 0x2b0], eax
je 0x4269aa
test eax, eax
je 0x4269aa
mov al, 1
jmp 0x4269be
push 0
push 0
push 0x5cb1d8
call fcn.00437d21
mov al, byte [ebp - 0x422]
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.00557f7f
mov esp, ebp
pop ebp
ret