Function at 0x408d40
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x442f4f
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x457600]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457600]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov dword [ebp + 0x230], ebx
mov dword [ebp + 0x22c], ebx
push 0x10
mov dword [ebp + 0x234], ebx
mov dword [ebp + 0x238], ebx
mov dword [ebp + 0x23c], ebx
mov dword [ebp + 0x240], ebx
mov dword [ebp + 0x244], ebx
mov dword [ebp + 0x248], ebx
mov dword [ebp + 0x24c], ebx
mov dword [ebp + 0x250], ebx
call fcn.004110f8
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x23c], ebx
cmp eax, ebx
je 0x408de8
mov ecx, eax
call fcn.0041688b
mov esi, eax
jmp 0x408dea
xor esi, esi
mov dword [esp + 0x23c], 0xffffffff
push ebx
mov dword [ebp + 0x228], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00416d89
push 0x206
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x30], ax
call fcn.0042fb00
mov ecx, dword [0x45b9f4]
add esp, 0xc
lea edi, [esp + 0x24]
call fcn.00401130
mov edx, edi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.res.dat
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
mov ecx, edi
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408ea8
mov edx, edi
push edx
lea ecx, [esp + 0x20]
call fcn.00406b70
mov edi, 1
mov ebx, edi
mov dword [esp + 0x23c], edi
mov dword [esp + 0x20], ebx
test byte [0x45b700], bl
jne 0x408e90
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
lea eax, [esp + 0x1c]
mov esi, 0x45b708
call fcn.00407360
test al, al
je 0x408ead
mov byte [esp + 0x1b], bl
jmp 0x408eb2
mov edi, 1
mov byte [esp + 0x1b], 0
mov dword [esp + 0x23c], 0xffffffff
test bl, 1
je 0x408ee2
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 0x408ee2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x40929a
test byte [0x45b700], 1
jne 0x408f09
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_00.png
call fcn.004074c0
test eax, eax
jne 0x408f42
test byte [0x45b700], 1
jne 0x408f38
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_00.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x234], eax
jne 0x408f64
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_01.png
call fcn.004074c0
test eax, eax
jne 0x408f9d
test byte [0x45b700], 1
jne 0x408f93
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_01.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x238], eax
jne 0x408fbf
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_02.png
call fcn.004074c0
test eax, eax
jne 0x408ff8
test byte [0x45b700], 1
jne 0x408fee
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_02.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x23c], eax
jne 0x40901a
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_03.png
call fcn.004074c0
test eax, eax
jne 0x409053
test byte [0x45b700], 1
jne 0x409049
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_03.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x240], eax
jne 0x409075
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_04.png
call fcn.004074c0
test eax, eax
jne 0x4090ae
test byte [0x45b700], 1
jne 0x4090a4
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_04.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x244], eax
jne 0x4090d0
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_05.png
call fcn.004074c0
test eax, eax
jne 0x409109
test byte [0x45b700], 1
jne 0x4090ff
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_05.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x248], eax
jne 0x40912b
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_06.png
call fcn.004074c0
test eax, eax
jne 0x409164
test byte [0x45b700], 1
jne 0x40915a
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_06.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x24c], eax
jne 0x409186
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, str.Skin_wnd_07.png
call fcn.004074c0
test eax, eax
jne 0x4091bf
test byte [0x45b700], 1
jne 0x4091b5
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push str.Skin_wnd_07.png
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x250], eax
jne 0x4091e1
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, 0x44b378
call fcn.004074c0
test eax, eax
jne 0x40921a
test byte [0x45b700], 1
jne 0x409210
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x44b378
call fcn.00407410
test byte [0x45b700], 1
mov dword [ebp + 0x230], eax
jne 0x40923c
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x45b708
mov ecx, 0x44b390
call fcn.004074c0
test eax, eax
jne 0x409275
test byte [0x45b700], 1
jne 0x40926b
or dword [0x45b700], edi
push 0x443570
call fcn.0042e635
add esp, 4
push 0x44b390
call fcn.00407410
cmp dword [ebp + 0x230], 0
mov dword [ebp + 0x22c], eax
je 0x40928c
test eax, eax
je 0x40928c
mov al, 1
jmp 0x40929c
push 0
push 0
push 0x44b3b0
call fcn.00416587
xor al, al
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0042d791
add esp, 0x22c
ret 4