Function at 0x416f40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4032b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xa4
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4026a8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 0x10
push 0x880
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
lea ecx, [ebp - 0x5c]
push ecx
mov edx, dword [0x4251c4]
push edx
mov eax, dword [0x4251e4]
push eax
call fcn.0040ef20
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 4
mov word [ebp - 0x88], 0x19
mov word [ebp - 0x84], 1
mov word [ebp - 0x24], 0
jmp 0x417018
mov ax, word [ebp - 0x24]
add ax, word [ebp - 0x84]
jo 0x41752a
mov word [ebp - 0x24], ax
mov cx, word [ebp - 0x24]
cmp cx, word [ebp - 0x88]
jg 0x4174d1
mov dword [ebp - 4], 5
movsx edx, word [ebp - 0x24]
mov dword [ebp - 0xac], edx
fild dword [ebp - 0xac]
fstp qword [ebp - 0xb4]
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
push 0x40000000
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaPowerR8]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov edx, dword [ebp - 0x34]
and edx, eax
mov dword [ebp - 0x94], edx
mov dword [ebp - 4], 6
cmp dword [ebp - 0x94], 0
je 0x417454
mov dword [ebp - 4], 7
mov eax, dword [0x42511c]
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov word [ebp - 0x90], ax
mov word [ebp - 0x8c], 1
mov word [ebp - 0x28], 0
jmp 0x4170d0
mov cx, word [ebp - 0x28]
add cx, word [ebp - 0x8c]
jo 0x41752a
mov word [ebp - 0x28], cx
mov dx, word [ebp - 0x28]
cmp dx, word [ebp - 0x90]
jg 0x4171be
mov dword [ebp - 4], 8
cmp dword [0x42511c], 0
je 0x41713f
mov eax, dword [0x42511c]
cmp word [eax], 1
jne 0x41713f
movsx ecx, word [ebp - 0x28]
mov edx, dword [0x42511c]
sub ecx, dword [edx + 0x14]
mov dword [ebp - 0x7c], ecx
mov eax, dword [0x42511c]
mov ecx, dword [ebp - 0x7c]
cmp ecx, dword [eax + 0x10]
jae 0x417125
mov dword [ebp - 0xb8], 0
jmp 0x417131
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0x7c]
shl edx, 2
mov dword [ebp - 0xbc], edx
jmp 0x41714b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xbc], eax
mov eax, dword [0x42511c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xbc]
mov eax, dword [ecx + edx]
push eax
mov cx, word [ebp - 0x24]
add cx, 0x41
jo 0x41752a
movsx edx, cx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
neg eax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0x80], ax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x80]
test eax, eax
je 0x4171b2
mov dword [ebp - 4], 9
mov word [ebp - 0x30], 0xffff
jmp 0x4171be
mov dword [ebp - 4], 0xc
jmp 0x4170bb
mov dword [ebp - 4], 0xd
push 0x48
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0xe
movsx ecx, word [ebp - 0x30]
test ecx, ecx
jne 0x417454
mov dword [ebp - 4], 0xf
push 0x4050c000
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcSqr]
fstp qword [ebp - 0x78]
mov dword [ebp - 4], 0x10
push 0x40584000
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcSin]
fstp qword [ebp - 0x78]
mov dword [ebp - 4], 0x11
push 0
mov edx, dword [0x42511c]
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
add eax, 1
jo 0x41752a
push eax
push 1
push 8
push 0x42511c
push 4
push 0x180
call dword [sym.imp.MSVBVM60.DLL___vbaRedimPreserve]
add esp, 0x1c
mov dword [ebp - 4], 0x12
mov dword [ebp - 0x40], 0x89
mov dword [ebp - 0x48], 2
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcRound]
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x48]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x13
push 0x13
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcByteValueBstr]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x14
push 0x40666000
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcExp]
fstp qword [ebp - 0x78]
mov dword [ebp - 4], 0x15
cmp dword [0x42511c], 0
je 0x417348
mov ecx, dword [0x42511c]
cmp word [ecx], 1
jne 0x417348
mov edx, dword [0x42511c]
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, dword [0x42511c]
sub eax, dword [ecx + 0x14]
mov dword [ebp - 0x7c], eax
mov edx, dword [0x42511c]
mov eax, dword [ebp - 0x7c]
cmp eax, dword [edx + 0x10]
jae 0x41732e
mov dword [ebp - 0xc0], 0
jmp 0x41733a
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0x7c]
shl ecx, 2
mov dword [ebp - 0xc4], ecx
jmp 0x417354
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xc4], eax
mov dx, word [ebp - 0x24]
add dx, 0x41
jo 0x41752a
movsx eax, dx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, dword [0x42511c]
mov ecx, dword [ecx + 0xc]
add ecx, dword [ebp - 0xc4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x16
push 0x86
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcAnsiValueBstr]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x17
push 0x1bda
call dword [sym.imp.MSVBVM60.DLL___vbaStrI2]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov dword [ebp - 4], 0x18
push 0x406c2000
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcTan]
fstp qword [ebp - 0x78]
mov dword [ebp - 4], 0x19
mov dx, word [ebp - 0x24]
add dx, 0x41
jo 0x41752a
movsx eax, dx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x404890
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
jmp 0x4174d1
mov dword [ebp - 4], 0x1d
mov word [ebp - 0x30], 0
mov dword [ebp - 4], 0x1e
push 0x40610000
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcExp]
fstp qword [ebp - 0x78]
mov dword [ebp - 4], 0x1f
push 0x40632000
push 0
call dword [sym.imp.MSVBVM60.DLL_rtcLog]
fstp qword [ebp - 0x78]
mov dword [ebp - 4], 0x20
mov dword [ebp - 0x40], 0x53
mov dword [ebp - 0x48], 2
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseVar]
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x21
jmp 0x417003
wait
push 0x417516
jmp 0x417515
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]