Function at 0x404870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43caab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x864
mov eax, dword [0x44fe90]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebp
xor ebp, ebp
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp eax, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x20], ebp
je 0x4048ba
cmp dword [0x44fe94], ebp
jne 0x404954
lea eax, [esp + 0x74]
push 0x400
push eax
push ebp
call ebx
lea ecx, [esp + 0x74]
push ecx
call edi
mov eax, dword [0x44fe98]
xor esi, esi
cmp eax, ebp
jle 0x4048ea
lea edx, [esp + 0x74]
push edx
call edi
mov eax, dword [0x44fe98]
inc esi
cmp esi, eax
jl 0x4048d9
lea eax, [esp + 0x74]
push str.MiniUI.dll
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x74]
push edx
call fcn.00405a80
add esp, 4
test eax, eax
je 0x40491b
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebp
mov dword [0x44fe94], eax
je 0x40495a
push str.GetMiniUI
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [0x44fe90], eax
jne 0x404954
mov ecx, dword [0x44fe94]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x44fe94], ebp
or eax, 0xffffffff
jmp 0x40503e
call eax
cmp eax, ebp
jne 0x404962
or eax, 0xffffffff
jmp 0x40503e
mov edx, dword [eax]
push eax
call dword [edx + 0x6c]
cmp eax, ebp
mov dword [esp + 0x28], eax
jne 0x404978
or eax, 0xffffffff
jmp 0x40503e
call sub.MFC42u.DLL_AfxGetModuleState
mov esi, dword [eax + 8]
push 0xc
mov dword [esp + 0x28], esi
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x87c], ebp
je 0x4049ab
push str.version1.0_encodingutf_16
mov ecx, eax
call fcn.004059d0
jmp 0x4049ad
xor eax, eax
cmp eax, ebp
mov dword [esp + 0x87c], 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4049ca
push 0x8007000e
call fcn.0043bfa0
push 0xc
mov dword [esp + 0x880], 1
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov byte [esp + 0x87c], 2
je 0x4049fd
push str.configconfig.xml
mov ecx, eax
call fcn.004059d0
jmp 0x4049ff
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x87c], 1
mov dword [esp + 0x10], eax
jne 0x404a19
push 0x8007000e
call fcn.0043bfa0
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x40]
push eax
call fcn.004058a0
mov eax, dword [esp + 0x10]
mov byte [esp + 0x87c], 6
cmp eax, ebp
mov dword [esp + 0x34], 0x441b38
je 0x404aef
mov eax, dword [eax]
cmp eax, ebp
je 0x404aef
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebp
jbe 0x404aef
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x404a70
mov eax, dword [eax]
jmp 0x404a72
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404a8e
lea ecx, [esp + 0x10]
push ebp
push ecx
lea ecx, [esp + 0x3c]
call fcn.004065b0
jmp 0x404aef
lea edx, [esp + 0x74]
push 0x400
push edx
push esi
call ebx
lea eax, [esp + 0x74]
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x404aae
mov eax, dword [eax]
jmp 0x404ab0
xor eax, eax
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x74]
lea ecx, [esp + 0x14]
push eax
call fcn.004058c0
lea ecx, [esp + 0x14]
push ebp
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x884], 7
call fcn.004065b0
lea ecx, [esp + 0x14]
call fcn.00405980
lea ecx, [esp + 0x10]
call fcn.00405980
mov bl, 9
lea ecx, [esp + 0x1c]
mov byte [esp + 0x87c], bl
call fcn.00405980
push ebp
lea ecx, [esp + 0x3c]
call fcn.00406070
test al, al
je 0x404b43
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0x441b38
call fcn.00405980
lea ecx, [esp + 0x3c]
call fcn.00405980
lea ecx, [esp + 0x38]
call fcn.00405830
or eax, 0xffffffff
jmp 0x40503e
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov byte [esp + 0x87c], 0xb
je 0x404b6b
push str.Root.Config_Skin_Item
mov ecx, eax
call fcn.004059d0
jmp 0x404b6d
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x87c], bl
mov dword [esp + 0x14], eax
jne 0x404b86
push 0x8007000e
call fcn.0043bfa0
lea edx, [esp + 0x14]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x884], 0xc
call fcn.00406c60
mov bl, 0xe
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], bl
call fcn.00405980
mov eax, dword [esp + 0x58]
mov edi, eax
cmp eax, ebp
mov dword [esp + 0x2c], edi
jg 0x404bfd
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0x441c18
call fcn.00405830
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0x441b38
call fcn.00405980
lea ecx, [esp + 0x3c]
call fcn.00405980
lea ecx, [esp + 0x38]
call fcn.00405830
or eax, 0xffffffff
jmp 0x40503e
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x87c], 0xf
je 0x404c25
push str.SkinPath
mov ecx, eax
call fcn.004059d0
jmp 0x404c27
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x87c], bl
mov dword [esp + 0x4c], eax
jne 0x404c40
push 0x8007000e
call fcn.0043bfa0
mov bl, 0x10
push 0xc
mov byte [esp + 0x880], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x87c], 0x11
je 0x404c71
push str.DefaultSkin
mov ecx, eax
call fcn.004059d0
jmp 0x404c73
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x87c], bl
mov dword [esp + 0x50], eax
jne 0x404c8c
push 0x8007000e
call fcn.0043bfa0
mov bl, 0x12
push 0xc
mov byte [esp + 0x880], bl
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov byte [esp + 0x87c], 0x13
je 0x404cbd
push 0x44ba54
mov ecx, eax
call fcn.004059d0
jmp 0x404cbf
xor eax, eax
cmp eax, ebp
mov byte [esp + 0x87c], bl
mov dword [esp + 0x48], eax
jne 0x404cd8
push 0x8007000e
call fcn.0043bfa0
lea ecx, [esp + 0x18]
mov byte [esp + 0x87c], 0x14
push ecx
mov ecx, dword [esp + 0x64]
call fcn.00402780
lea ecx, [esp + 0x30]
mov byte [esp + 0x87c], 0x15
call sub.MFC42u.DLL_CString::CString_4
xor esi, esi
cmp edi, ebp
mov byte [esp + 0x87c], 0x16
jle 0x404edc
mov ebp, dword [sym.imp.MSVCRT.dll_wcscmp]
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov bl, 0x17
lea edx, [esp + 0x64]
push esi
push edx
lea ecx, [esp + 0x5c]
call fcn.004060d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString_4
lea eax, [esp + 0x10]
push 0x44ffe8
lea ecx, [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x70]
mov byte [esp + 0x888], 0x18
call fcn.00405f00
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
je 0x404ea0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
push 0x44ffe8
lea edx, [esp + 0x4c]
push ecx
push edx
lea ecx, [esp + 0x70]
mov byte [esp + 0x888], 0x19
call fcn.00405f00
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404e8f
push 0x44b8f8
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004398ce
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea edx, [esp + 0x14]
push 0x44ffe8
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x888], 0x1a
call fcn.00405f00
mov ecx, dword [esp + 0x14]
push 0x44ba50
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x404e4f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push ecx
push eax
call dword [edx]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
push edx
push eax
call edi
add esp, 8
test eax, eax
jne 0x404e7e
mov dword [esp + 0x20], 1
jmp 0x404e7e
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push ecx
push edx
call edi
add esp, 8
test eax, eax
jne 0x404e7e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
mov dword [esp + 0x2c], 1
call dword [ecx + 0x1c]
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], 0x19
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x87c], 0x18
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x64]
mov byte [esp + 0x87c], 0x16
call fcn.00405dc0
mov eax, dword [esp + 0x2c]
inc esi
cmp esi, eax
jl 0x404d1f
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x404fd7
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp dword [eax - 8], ebp
jle 0x404fd7
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_3
mov bl, 0x1b
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x880], bl
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x404f1c
inc eax
lea ecx, [esp + 0x20]
push eax
push ebp
call sub.MFC42u.DLL_CString::Delete
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x404f5f
push 0x44ba4c
lea ecx, [esp + 0x18]
call fcn.004398ec
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x880], 0x1c
call fcn.004398ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.004398ce
push 0x44ba48
lea ecx, [esp + 0x18]
call fcn.004398ec
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], 0x1d
push ecx
lea ecx, [esp + 0x1c]
call fcn.004398ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString
mov edx, dword [esp + 0x18]
push edx
push ebp
call fcn.004075a0
add esp, 8
test eax, eax
je 0x404fc6
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx]
lea ecx, [esp + 0x20]
mov byte [esp + 0x87c], 0x16
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x87c], 0x15
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x87c], 0x14
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
call fcn.00405980
lea ecx, [esp + 0x50]
call fcn.00405980
lea ecx, [esp + 0x4c]
call fcn.00405980
lea ecx, [esp + 0x5c]
mov dword [esp + 0x54], 0x441c18
call fcn.00405830
lea ecx, [esp + 0x34]
mov dword [esp + 0x87c], 0xffffffff
call fcn.00406500
mov eax, 1
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x870
ret