Function at 0x431da0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45d2ec
push eax
mov eax, 0x2230
mov dword fs:[0], esp
call fcn.00456620
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
push str.CMainFrame::InitControls
lea ecx, [esp + 0x28]
call fcn.00455e90
mov ax, word [0x473258]
mov ecx, 0x1ff
mov word [esp + 0xa40], ax
xor eax, eax
lea edi, [esp + 0xa42]
mov dword [esp + 0x2248], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
call sub.MFC42u.DLL_CString::CString_4
lea eax, [ebp + 0x1b4]
mov byte [esp + 0x2248], 1
push eax
mov dword [esp + 0x20], eax
call fcn.00420dd0
add esp, 4
test eax, eax
je 0x431e54
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00433b60
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x224c], 2
call sub.MFC42u.DLL_CString::operator
mov byte [esp + 0x2248], 1
lea ecx, [esp + 0x10]
jmp 0x431e78
lea edx, [esp + 0x10]
mov ecx, 0x473130
push edx
call fcn.00404840
mov eax, dword [eax]
push str.defaultskin
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [edx - 8]
test eax, eax
je 0x431f52
test edx, edx
mov esi, edx
je 0x431f52
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x240]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x240]
test ecx, ecx
je 0x431f52
mov ecx, 0x400
lea edi, [esp + 0x1240]
rep stosd dword es:[edi], eax
push edx
mov word [esp + 0x244], ax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x431f29
lea edx, [esp + 0x1240]
push 0x800
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x1240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x1240]
push esi
lea edx, [esp + 0x1244]
push ecx
push edx
call ebx
lea eax, [esp + 0x1240]
push 0x400
lea ecx, [esp + 0x244]
push eax
push ecx
jmp 0x431f37
push 0x400
lea edx, [esp + 0x244]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x431fa0
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x473130
call fcn.00404740
mov eax, dword [ebp + 0xe04]
mov edx, dword [esp + 0x10]
lea esi, [ebp + 0xe04]
push eax
lea eax, [esp + 0xa44]
push edx
push eax
mov byte [esp + 0x2254], 3
call ebx
push esi
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x2248], 1
call sub.MFC42u.DLL_CString::CString
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x46ebd0
call sub.MFC42u.DLL_CString::CString_1
add ebp, 0x934
mov ecx, ebp
call fcn.0040f640
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
cmp eax, 4
jle 0x43203f
lea edx, [esp + 0x10]
push 4
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Right
mov eax, dword [eax]
push str..png
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42u.DLL_CString::CString
test bl, bl
je 0x43203f
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004562c0
mov ecx, ebp
call fcn.0040fd80
mov eax, dword [esp + 0x1c]
push eax
call fcn.00420dd0
add esp, 4
test eax, eax
je 0x43203f
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
call fcn.004212c0
add esp, 4
mov ecx, ebp
call fcn.0040f640
lea ecx, [esp + 0x14]
mov byte [esp + 0x2248], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x2248], 0xffffffff
call fcn.00455fc0
mov ecx, dword [esp + 0x2240]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x223c
ret