Function at 0x421940
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x45b647
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x850
push esi
mov esi, dword [esp + 0x868]
push edi
mov dword [esp + 0x2c], 0
mov edx, dword [esi]
test edx, edx
je 0x4219a7
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x58]
push 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
push eax
push edx
push 0
call fcn.00407ac0
add esp, 0x10
test eax, eax
je 0x4219a7
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4219d3
mov esi, dword [esp + 0x868]
push 0x473258
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
add esp, 0x85c
ret
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x860], 1
je 0x4219fe
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.00405f80
jmp 0x421a00
xor eax, eax
test eax, eax
mov byte [esp + 0x860], 0
mov dword [esp + 0x18], eax
jne 0x421a1a
push 0x8007000e
call fcn.004589a0
push ebx
mov esi, dword [esi]
mov ebx, 2
push 0xc
mov dword [esp + 0x868], ebx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x864], 3
je 0x421a4d
push esi
mov ecx, eax
call fcn.00405f80
jmp 0x421a4f
xor eax, eax
test eax, eax
mov byte [esp + 0x864], bl
mov dword [esp + 0x14], eax
jne 0x421a68
push 0x8007000e
call fcn.004589a0
mov byte [esp + 0x864], 4
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x40]
push edx
call fcn.00405e50
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
mov byte [esp + 0x864], 7
mov dword [esp + 0x34], 0x460e90
mov ebx, 8
je 0x421b65
mov eax, dword [eax]
test eax, eax
je 0x421b65
push eax
call edi
test eax, eax
jbe 0x421b65
mov eax, dword [esp + 0x14]
test eax, eax
je 0x421ade
mov eax, dword [eax]
jmp 0x421ae0
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x421afc
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
call fcn.004069f0
jmp 0x421b65
lea ecx, [esp + 0x5c]
push 0x400
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x421b24
mov eax, dword [eax]
jmp 0x421b26
xor eax, eax
push eax
lea eax, [esp + 0x60]
lea ecx, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0xc]
push edx
call fcn.00405e70
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x86c], bl
call fcn.004069f0
lea ecx, [esp + 0xc]
call fcn.00405f30
lea ecx, [esp + 0x14]
call fcn.00405f30
lea ecx, [esp + 0x1c]
mov byte [esp + 0x864], 0xa
call fcn.00405f30
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x864], 0xc
je 0x421ba7
push 0x46ed34
mov ecx, eax
call fcn.0041ae90
jmp 0x421ba9
xor eax, eax
test eax, eax
mov byte [esp + 0x864], 0xa
mov dword [esp + 0x18], eax
jne 0x421bc3
push 0x8007000e
call fcn.004589a0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x86c], 0xd
call fcn.004078b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x864], 0xf
call fcn.00405f30
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
push 0xc
mov byte [esp + 0x868], 0x10
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x864], 0x11
je 0x421c28
push str.SkinName
mov ecx, eax
call fcn.00405f80
jmp 0x421c2a
xor eax, eax
test eax, eax
mov byte [esp + 0x864], 0x10
mov dword [esp + 0xc], eax
jne 0x421c48
push 0x8007000e
call fcn.004589a0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x421d0f
mov eax, dword [eax]
test eax, eax
je 0x421d0f
push eax
call edi
test eax, eax
jbe 0x421d0f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x20]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x86c], 0x13
call fcn.004062b0
test eax, eax
jne 0x421cb6
push 0x473258
lea ecx, [esp + 0x14]
call fcn.00456320
lea eax, [esp + 0x20]
mov byte [esp + 0x864], 0x12
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x421d0f
jmp 0x421d09
cmp word [esp + 0x20], bx
je 0x421ce4
push 0x473258
lea ecx, [esp + 0x14]
call fcn.00456320
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 0x12
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x421d0f
jmp 0x421d09
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.00456320
lea eax, [esp + 0x20]
mov byte [esp + 0x864], 0x12
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x421d0f
push eax
call fcn.004589a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x864], 0x10
call fcn.00405f30
push str.MiniUI.ConfigVERSION
lea ecx, [esp + 0x10]
call fcn.00406f00
lea ecx, [esp + 0x20]
push eax
mov bl, 0x14
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x86c], bl
call fcn.004078b0
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x868], 0x15
call fcn.00418610
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], bl
call fcn.00406200
lea ecx, [esp + 0xc]
mov byte [esp + 0x864], 0x10
call fcn.00405f30
push str.Version
lea ecx, [esp + 0x10]
call fcn.00405e70
mov edx, dword [esp + 0x874]
push 0x473258
lea eax, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x870], 0x16
call fcn.00406340
lea ecx, [esp + 0xc]
mov byte [esp + 0x864], 0x10
call fcn.00405f30
mov esi, dword [esp + 0x86c]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004562c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
mov byte [esp + 0x864], 0xf
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x864], 0xa
call fcn.00406200
lea ecx, [esp + 0x34]
mov byte [esp + 0x864], 0
call fcn.00406940
mov ecx, dword [esp + 0x85c]
pop ebx
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x85c
ret