Function at 0x40bfa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
push 0x421388
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x421388
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::CString_2
push 0x420c90
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString_2
push 0x420c88
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 0x1a8]
mov byte [esp + 0x30], 3
test eax, eax
je 0x40c1c5
cmp dword [esi + 0x14c], 1
jne 0x40c030
mov ecx, dword [esi + 0x150]
test ecx, ecx
je 0x40c030
fld dword [ecx]
jmp 0x40c036
fld dword [eax + 0x100]
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
mov eax, edi
neg eax
shl eax, 2
sub eax, edi
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
mov eax, 0x88888889
shl edx, 4
add ecx, edx
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
imul eax, eax, 0xffffffc4
add ecx, eax
test edi, edi
push ecx
push edx
jle 0x40c09b
push edi
lea ecx, [esp + 0x18]
push 0x420c78
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x40c0ad
lea edx, [esp + 0x14]
push 0x420c70
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov eax, dword [esi + 0x1a8]
lea ecx, [esp + 8]
add eax, 0x158
push eax
call fcn.00414c26
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c159
mov edx, dword [esi + 0x1a8]
lea ecx, [esp + 8]
push edx
call fcn.00414c26
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 8]
lea edx, [esp + 0x18]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 4
call fcn.00414c50
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.00414af4
push 0x2e
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 5
call fcn.00414c50
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.00414af4
mov ecx, dword [esi + 0x1a8]
mov eax, 0x10624dd3
mov ecx, dword [ecx + 0x114]
imul ecx
sar edx, 6
mov eax, edx
lea ecx, [esp + 0x14]
shr eax, 0x1f
add edx, eax
push edx
push 0x41f514
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0x1a8]
add esp, 0xc
xor edx, edx
test eax, eax
je 0x40c1b2
mov eax, dword [eax + 0x150]
test eax, eax
je 0x40c1b2
mov ecx, dword [eax]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
lea ecx, [esp + 0x14]
push 0x41f514
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 8]
push 0x420c68
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x3c], 6
call sub.MFC42.DLL_operator_3
push 0x420c64
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x38], 7
push eax
call sub.MFC42.DLL_operator
push 0x420c60
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x3c], 8
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov edi, dword [sym.imp.TVPSkin.dll_public:_int___thiscall_CSkinDialog::SetText_char_const___char_const__]
push eax
push 0x420bc0
mov ecx, esi
mov byte [esp + 0x38], 9
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 8
call fcn.00414af4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 7
call fcn.00414af4
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 6
call fcn.00414af4
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.00414af4
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
push edx
push 0x420c58
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, esi
push eax
push 0x420bb0
mov byte [esp + 0x38], 0xa
call edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.00414af4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push 0x420c50
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, esi
push eax
push 0x420ba0
mov byte [esp + 0x38], 0xb
call edi
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 3
call fcn.00414af4
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x10]
call fcn.00414af4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 1
call fcn.00414af4
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.00414af4
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00414af4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret