Function at 0x421e30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45b750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa50
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5a]
mov word [esp + 0x58], bp
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0xa74]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov dword [esp + 0xa74], ebp
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [esp + 0x58]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_1
push 0x473258
lea ecx, [esp + 0x14]
mov byte [esp + 0xa6c], 1
call sub.MFC42u.DLL_CString::CString_1
cmp esi, ebp
mov byte [esp + 0xa68], 2
je 0x421efc
lea edx, [esp + 0x58]
push esi
lea eax, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x14]
call fcn.00456320
push 0x46d980
lea ecx, [esp + 0x14]
call fcn.004562cc
push str._skin.png
lea ecx, [esp + 0x1c]
call fcn.004562cc
mov edx, dword [esp + 0xa70]
cmp edx, ebp
je 0x4223be
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x260]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x264]
push eax
push edx
push ebp
call fcn.00407ac0
add esp, 0x10
test eax, eax
je 0x4223be
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x260]
push ecx
call esi
cmp eax, ebp
je 0x4223be
mov edx, dword [esp + 0x18]
cmp edx, ebp
je 0x4223be
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x260]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x264]
push eax
push edx
push ebp
call fcn.00407ac0
add esp, 0x10
test eax, eax
je 0x4223be
lea ecx, [esp + 0x260]
push ecx
call esi
cmp eax, ebp
je 0x4223be
mov edx, dword [esp + 0x10]
cmp edx, ebp
je 0x4223be
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x260]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x264]
push eax
push edx
push ebp
call fcn.00407ac0
add esp, 0x10
test eax, eax
je 0x4223be
lea ecx, [esp + 0x260]
push ecx
call esi
cmp eax, ebp
je 0x4223be
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_4
push 0xc
mov byte [esp + 0xa6c], 3
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0xa68], 4
je 0x422033
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.00405f80
jmp 0x422035
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xa68], 3
mov dword [esp + 0x2c], eax
jne 0x42204f
push 0x8007000e
call fcn.004589a0
mov bl, 5
push 0xc
mov byte [esp + 0xa6c], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0xa68], 6
je 0x422080
push str.configconfig.xml
mov ecx, eax
call fcn.00405f80
jmp 0x422082
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xa68], bl
mov dword [esp + 0x24], eax
jne 0x42209b
push 0x8007000e
call fcn.004589a0
mov byte [esp + 0xa68], 7
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x4c]
push edx
call fcn.00405e50
mov eax, dword [esp + 0x24]
mov byte [esp + 0xa68], 0xa
cmp eax, ebp
mov dword [esp + 0x40], 0x460e90
je 0x422198
mov eax, dword [eax]
cmp eax, ebp
je 0x422198
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebp
jbe 0x422198
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x422102
mov eax, dword [eax]
jmp 0x422104
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x422120
lea eax, [esp + 0x24]
push ebp
push eax
lea ecx, [esp + 0x48]
call fcn.004069f0
jmp 0x422198
lea ecx, [esp + 0x260]
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x42214e
mov eax, dword [eax]
jmp 0x422150
xor eax, eax
push eax
lea eax, [esp + 0x264]
lea ecx, [esp + 0x264]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x260]
lea ecx, [esp + 0x1c]
push edx
call fcn.00405e70
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xa70], 0xb
call fcn.004069f0
lea ecx, [esp + 0x1c]
call fcn.00405f30
lea ecx, [esp + 0x24]
call fcn.00405f30
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa68], 0xd
call fcn.00405f30
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0xa68], 0xf
je 0x4221da
push str.Root.Config_default
mov ecx, eax
call fcn.0041ae90
jmp 0x4221dc
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xa68], 0xd
mov dword [esp + 0x1c], eax
jne 0x4221f6
push 0x8007000e
call fcn.004589a0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x48]
mov byte [esp + 0xa70], 0x10
call fcn.004078b0
mov bl, 0x12
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa68], bl
call fcn.00405f30
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, ebp
mov byte [esp + 0xa68], 0x13
je 0x42224b
push str.MinUIVer
mov ecx, eax
call fcn.0041ae90
jmp 0x42224d
xor eax, eax
cmp eax, ebp
mov byte [esp + 0xa68], bl
mov dword [esp + 0x14], eax
jne 0x422266
push 0x8007000e
call fcn.004589a0
lea eax, [esp + 0x20]
push 0x46df68
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa74], 0x14
call fcn.00406340
lea ecx, [esp + 0x14]
mov byte [esp + 0xa68], bl
call fcn.00405f30
lea edx, [esp + 0x20]
lea eax, [esp + 0xa70]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00421940
add esp, 0xc
mov eax, dword [esp + 0x20]
cmp dword [eax - 8], ebp
je 0x422356
push eax
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
cmp eax, ebp
jl 0x422356
lea ecx, [esp + 0x28]
mov byte [esp + 0xa68], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xa68], 0xd
call fcn.00406200
lea ecx, [esp + 0x40]
mov byte [esp + 0xa68], 3
call fcn.00406940
lea ecx, [esp + 0x20]
mov byte [esp + 0xa68], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa68], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa68], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa70]
mov dword [esp + 0xa68], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
jmp 0x4223f9
lea ecx, [esp + 0x28]
mov byte [esp + 0xa68], bl
call sub.MFC42u.DLL_CString::CString
mov dword [esp + 0x30], 0x460e94
push ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa6c], 0x17
call fcn.00405e20
push ebp
lea ecx, [esp + 0x38]
call fcn.00405e20
lea ecx, [esp + 0x38]
call fcn.00405e10
lea ecx, [esp + 0x34]
call fcn.00405e10
lea ecx, [esp + 0x40]
mov byte [esp + 0xa68], 3
call fcn.00406940
lea ecx, [esp + 0x20]
mov byte [esp + 0xa68], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xa68], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa68], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xa70]
mov dword [esp + 0xa68], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xa60]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa5c
ret