Function at 0x412ebc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x403656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x160
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4019f8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0x69
lea eax, [ebp - 0x78]
push eax
call sub.MSVBVM60.DLL_rtcVarBstrFromAnsi
push 0x69
call sub.MSVBVM60.DLL_rtcBstrFromAnsi
mov edx, eax
lea ecx, [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaStrMove
push 0x6e
call sub.MSVBVM60.DLL_rtcBstrFromAnsi
mov edx, eax
lea ecx, [ebp - 0x64]
call sub.MSVBVM60.DLL___vbaStrMove
push 0x32
lea eax, [ebp - 0xd8]
push eax
call sub.MSVBVM60.DLL_rtcVarBstrFromAnsi
push 0x48
call sub.MSVBVM60.DLL_rtcBstrFromAnsi
mov edx, eax
lea ecx, [ebp - 0x68]
call sub.MSVBVM60.DLL___vbaStrMove
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x174], eax
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x88], 8
mov dword [ebp - 0x130], 0x4055d0
mov dword [ebp - 0x138], 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x178], eax
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], 8
mov dword [ebp - 0x140], 0x4056c8
mov dword [ebp - 0x148], 8
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x17c], eax
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x17c]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x108], 8
push 1
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x98]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc8]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe8]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0xf8]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
call sub.MSVBVM60.DLL_rtcRightCharBstr
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x128], 8
lea edx, [ebp - 0x128]
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x78]
push eax
push 0xb
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x30
mov dword [ebp - 4], 4
mov eax, dword [ebp + 8]
movsx eax, word [eax]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], 1
mov dword [ebp - 0x58], 1
jmp 0x413141
mov eax, dword [ebp - 0x58]
add eax, dword [ebp - 0x158]
jo 0x4133d6
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x15c]
jg 0x413256
mov dword [ebp - 4], 5
push 0x56
call sub.MSVBVM60.DLL_rtcBstrFromAnsi
mov edx, eax
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaStrMove
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x180], eax
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x78], 8
push 3
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x88]
push eax
call sub.MSVBVM60.DLL_rtcRightVar
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 6
push dword [0x4450b8]
call sub.MSVBVM60.DLL___vbaLenBstr
mov ecx, eax
call sub.MSVBVM60.DLL___vbaI2I4
mov word [ebp - 0x150], ax
mov word [ebp - 0x14c], 1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.00407e48
mov word [ebp - 0x154], ax
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x78], 2
push dword [ebp - 0x44]
lea eax, [ebp - 0x78]
push eax
movsx eax, word [ebp - 0x154]
push eax
push dword [0x4450b8]
call sub.MSVBVM60.DLL_rtcMidCharBstr
mov edx, eax
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaStrMove
push eax
call sub.MSVBVM60.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x78]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 7
jmp 0x41312f
mov dword [ebp - 4], 8
push 0x51
lea eax, [ebp - 0x78]
push eax
call sub.MSVBVM60.DLL_rtcVarBstrFromAnsi
mov dword [ebp - 0x130], 0x405214
mov dword [ebp - 0x138], 8
push 0x5a
call sub.MSVBVM60.DLL_rtcBstrFromAnsi
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x98], 8
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x88]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
call sub.MSVBVM60.DLL_rtcRightTrimBstr
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], 8
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0x5c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x78]
push eax
push 4
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0x14
push 0x4133c2
jmp 0x4133a9
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaFreeVar
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow