Function at 0x405d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4185e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x60], 1
call esi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x68]
mov byte [esp + 0x5c], 3
and eax, 0xffff
mov dword [esp + 0x2c], ebx
cmp eax, 0x11
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
ja case.0x405da6.0
jmp dword [eax*4 + 0x4060ac]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0xc]
and ecx, 0xff
push ecx
push 0x4241bc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40600d
movsx eax, word [esp + 0x70]
push eax
lea ecx, [esp + 0x10]
push 0x4241bc
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40600d
mov edx, dword [esp + 0x70]
jmp 0x405fea
fld dword [esp + 0x70]
sub esp, 8
lea ecx, [esp + 0x14]
fstp qword [esp]
push 0x424468
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x40600d
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x424468
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x40600d
lea edx, [esp + 0x68]
lea ecx, [esp + 0x28]
push edx
call sub.MFC42.DLL_COleCurrency::operator
push 0x400
lea eax, [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_COleCurrency::Format
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call fcn.004170c2
jmp 0x40600d
lea ecx, [esp + 0x68]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x405e95
push eax
call fcn.0041762c
mov edi, 8
cmp word [esp + 0x34], di
jne 0x405ee5
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
call fcn.004046f0
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x5c], 5
je 0x405ed8
push esi
mov ecx, eax
call fcn.00407840
mov byte [esp + 0x5c], 3
mov dword [esp + 0x10], eax
jmp 0x405f4c
xor eax, eax
mov byte [esp + 0x5c], 3
mov dword [esp + 0x10], eax
jmp 0x405f4c
lea eax, [esp + 0x44]
push eax
call esi
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 6
test ecx, ecx
lea eax, [esp + 0x34]
jne 0x405f08
cmp word [esp + 0x44], di
lea eax, [esp + 0x44]
je 0x405f20
push edi
push ebx
lea edx, [esp + 0x4c]
push eax
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp eax, ebx
jge 0x405f20
push eax
call fcn.0041762c
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.00404610
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 3
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x405f48
push eax
call fcn.0041762c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x405f8f
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
cmp ecx, ebx
mov edi, eax
jne 0x405f78
mov edx, dword [eax]
push edx
call fcn.0041774e
cmp eax, ebx
mov dword [esi], eax
jne 0x405f78
cmp dword [edi], ebx
je 0x405f78
push 0x8007000e
call fcn.0041762c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push esi
push 0x424464
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40600d
xor esi, esi
lea eax, [esp + 0xc]
push esi
push 0x424464
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40600d
fld qword [esp + 0x70]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x1c]
push str._A__B_d__Y
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CTime::Format
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 3
call fcn.004170c2
jmp 0x40600d
movsx edx, word [esp + 0x70]
push edx
lea eax, [esp + 0x10]
push 0x4241bc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40600d
push 0x450388
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x10]
mov byte [esp + 0x5c], 2
cmp esi, ebx
je 0x40606e
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40606a
cmp esi, ebx
je 0x40606a
mov eax, dword [esi]
cmp eax, ebx
je 0x406051
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x406061
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x34]
mov byte [esp + 0x5c], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x406088
push eax
call fcn.0041762c
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], bl
call fcn.004170c2
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret