Function at 0x4056e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47eff2
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_2
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.0x405746.0
jmp dword [eax*4 + 0x405a4c]
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0xc]
and ecx, 0xff
push ecx
push 0x4982c4
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4059ad
movsx eax, word [esp + 0x70]
push eax
lea ecx, [esp + 0x10]
push 0x4982c4
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4059ad
mov edx, dword [esp + 0x70]
jmp 0x40598a
fld dword [esp + 0x70]
sub esp, 8
lea ecx, [esp + 0x14]
fstp qword [esp]
push 0x498688
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x4059ad
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x498688
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x4059ad
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
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4059ad
lea ecx, [esp + 0x68]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
cmp eax, ebx
jge 0x405835
push eax
call fcn.0042857c
mov edi, 8
cmp word [esp + 0x34], di
jne 0x405885
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
call fcn.00404aa0
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x5c], 5
je 0x405878
push esi
mov ecx, eax
call fcn.00407780
mov byte [esp + 0x5c], 3
mov dword [esp + 0x10], eax
jmp 0x4058ec
xor eax, eax
mov byte [esp + 0x5c], 3
mov dword [esp + 0x10], eax
jmp 0x4058ec
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 0x4058a8
cmp word [esp + 0x44], di
lea eax, [esp + 0x44]
je 0x4058c0
push edi
push ebx
lea edx, [esp + 0x4c]
push eax
push edx
call dword [sym.imp.OLEAUT32.dll_VariantTimeToDosDateTime]
cmp eax, ebx
jge 0x4058c0
push eax
call fcn.0042857c
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.004049c0
lea ecx, [esp + 0x44]
mov byte [esp + 0x5c], 3
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x4058e8
push eax
call fcn.0042857c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40592f
mov ecx, dword [eax + 4]
lea esi, [eax + 4]
cmp ecx, ebx
mov edi, eax
jne 0x405918
mov edx, dword [eax]
push edx
call fcn.0042869e
cmp eax, ebx
mov dword [esi], eax
jne 0x405918
cmp dword [edi], ebx
je 0x405918
push 0x8007000e
call fcn.0042857c
mov esi, dword [esi]
lea eax, [esp + 0xc]
push esi
push 0x498684
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4059ad
xor esi, esi
lea eax, [esp + 0xc]
push esi
push 0x498684
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4059ad
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
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::CString
jmp 0x4059ad
movsx edx, word [esp + 0x70]
push edx
lea eax, [esp + 0x10]
push 0x4982c4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x4059ad
push 0x49ab00
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004280e8
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x10]
mov byte [esp + 0x5c], 2
cmp esi, ebx
je 0x405a0e
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x405a0a
cmp esi, ebx
je 0x405a0a
mov eax, dword [esi]
cmp eax, ebx
je 0x4059f1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405a01
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 0x405a28
push eax
call fcn.0042857c
lea ecx, [esp + 0xc]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret