Function at 0x41d780
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4034e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x88
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x402568
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
mov dword [ebp - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0x38], 0x80020004
mov dword [ebp - 0x40], 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcNPer
fstp qword [ebp - 0x80]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 4
push 0x432628
push 0
call sub.MSVBVM60.DLL___vbaErase
mov dword [ebp - 4], 5
and word [ebp - 0x28], 0
mov dword [ebp - 4], 6
and dword [ebp - 0x38], 0
mov dword [ebp - 0x40], 2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.MSVBVM60.DLL_rtcGetMonthOfYear
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 7
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0x10
push 0x880
call sub.MSVBVM60.DLL___vbaRedim
add esp, 0x1c
lea eax, [ebp - 0x54]
push eax
push dword [0x432468]
push 0x432094
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
call fcn.00414b63
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x54]
push eax
push 0
call sub.MSVBVM60.DLL___vbaErase
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
mov dword [ebp - 4], 8
mov word [ebp - 0x88], 0x19
mov word [ebp - 0x84], 1
and word [ebp - 0x24], 0
jmp 0x41d90e
mov ax, word [ebp - 0x24]
add ax, word [ebp - 0x84]
jo 0x41dad9
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x24]
cmp ax, word [ebp - 0x88]
jg 0x41da88
mov dword [ebp - 4], 9
mov dword [ebp - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
mov dword [ebp - 0x38], 0x80020004
mov dword [ebp - 0x40], 0xa
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
fldz
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL_rtcNPer
fstp qword [ebp - 0x80]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
mov dword [ebp - 4], 0xa
movsx eax, word [ebp - 0x24]
mov dword [ebp - 0xa0], eax
fild dword [ebp - 0xa0]
fstp qword [ebp - 0xa8]
fld qword [ebp - 0xa8]
push ecx
push ecx
fstp qword [esp]
fld qword [0x4025d0]
push ecx
push ecx
fstp qword [esp]
call sub.MSVBVM60.DLL___vbaPowerR8
call sub.MSVBVM60.DLL___vbaFpI2
movsx eax, ax
mov ecx, dword [ebp - 0x2c]
and ecx, eax
call sub.MSVBVM60.DLL___vbaI2I4
movsx eax, ax
test eax, eax
je 0x41da7c
mov dword [ebp - 4], 0xb
push 0
movsx eax, word [ebp - 0x28]
push eax
push 1
push 8
push 0x432628
push 4
push 0x180
call sub.MSVBVM60.DLL___vbaRedimPreserve
add esp, 0x1c
mov dword [ebp - 4], 0xc
mov ax, word [ebp - 0x24]
add ax, 0x41
jo 0x41dad9
movsx eax, ax
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL_rtcVarBstrFromAnsi
lea eax, [ebp - 0x40]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrMove
mov esi, eax
movsx eax, word [ebp - 0x28]
push eax
push dword [0x432628]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov ecx, eax
mov edx, esi
call sub.MSVBVM60.DLL___vbaStrCopy
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0xd
mov ax, word [ebp - 0x28]
add ax, 1
jo 0x41dad9
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xe
push 0
call fcn.00407d84
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x10
jmp 0x41d8f9
mov dword [ebp - 4], 0x11
push 0
call fcn.00408070
call sub.MSVBVM60.DLL___vbaSetSystemError
wait
push 0x41daca
jmp 0x41dac9
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow