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

Disassembly:
push 0xffffffffffffffff
push 0x4f49d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x94], edi
mov dword [esp + 0x14], edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x53a3c0]
mov ecx, 0x53a3c0
mov byte [esp + 0x94], 2
mov dword [esp + 0x34], 0x53a3c0
call dword [eax + 4]
mov eax, dword [0x534040]
mov bl, 3
cmp eax, edi
mov byte [esp + 0x94], bl
jne 0x4ca64c
cmp dword [0x53403c], edi
jne 0x4ca64c
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov byte [esp + 0x94], 4
je 0x4ca61e
mov ecx, eax
call fcn.00431c60
jmp 0x4ca620
xor eax, eax
mov ecx, dword [0x525888]
mov byte [esp + 0x94], bl
push ecx
push 0x4031b0
mov ecx, 0x538d90
mov dword [0x53403c], eax
call fcn.00402180
mov dword [0x534040], 1
mov edx, dword [0x53a3c0]
mov esi, dword [0x53403c]
mov ecx, 0x53a3c0
mov byte [esp + 0x94], 2
call dword [edx + 8]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [eax + 8]
test eax, eax
jl 0x4ca721
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4ca721
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edi
mov edx, dword [eax]
push ecx
push 0x526890
push eax
call dword [edx]
cmp esi, edi
je 0x4ca6a8
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
mov bl, 5
push edx
mov ecx, dword [eax]
push eax
mov byte [esp + 0x9c], bl
call dword [ecx + 0x34]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x98], 6
call fcn.004dcf56
lea ecx, [esp + 0x24]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
mov byte [esp + 0x94], 2
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x9c]
push edi
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x24]
mov eax, 1
push str.Skin.zip
push ecx
mov dword [esp + 0x68], 0xffff0003
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x6c], 0x27
call fcn.00426640
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 7
xor esi, esi
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x20]
push edi
push edx
lea ecx, [esp + 0x44]
mov byte [esp + 0x9c], 8
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, edi
je 0x4ca9a6
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push 0x10
lea ecx, [esp + 0x44]
call dword [eax + 0x40]
cmp eax, edi
jne 0x4ca99b
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x4ca99b
mov edx, dword [esp + 0x40]
push 2
lea ecx, [esp + 0x44]
call dword [edx + 0x40]
cmp eax, edi
jne 0x4ca99b
lea eax, [esp + 0x10]
inc esi
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x38], esi
call sub.MFC42.DLL_CFileFind::GetFileName
lea ecx, [esp + 0x28]
push 4
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0xa0], 9
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x529888
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4ca986
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0xa
call fcn.004dcf56
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 9
call sub.MFC42.DLL_CString::CString
push 0x208
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
cmp esi, edi
mov byte [esp + 0x98], 0xb
je 0x4ca8fa
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 4]
mov byte [esp + 0x98], 0xc
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x98], 0xd
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x98], 0xe
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x98], 0xf
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], vtable.CBitmap.0
mov edi, esi
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
push eax
mov byte [esp + 0x9c], 9
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
mov ebx, dword [esp + 0x20]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0xa0], 0x10
call fcn.004cabe0
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x98], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebx + 0x20]
lea ecx, [esp + 0x5c]
neg esi
sbb esi, esi
push ecx
push 0
and esi, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x1100
push edx
mov dword [esp + 0x98], esi
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x4ca984
mov edx, ebx
push esi
push 9
push 0x110b
mov eax, dword [edx + 0x20]
push eax
call edi
xor edi, edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x98], 8
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x38], edi
jne 0x4ca79b
pop ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0x94], 7
call fcn.004dd38e
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
mov byte [esp + 0x94], 0
cmp eax, edi
je 0x4ca9ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x94], 0xffffffff
cmp eax, edi
je 0x4caa08
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 4