Function at 0x417783
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x404606
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xd8
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x403088
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaStrCopy
push 2
push 0x405de0
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM60.DLL___vbaAryConstruct2
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call sub.MSVBVM60.DLL___vbaOnError
mov dword [ebp - 4], 3
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 4
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 5
lea eax, [ebp - 0x54]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 0x4008
push 0
push 0x80
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
call sub.MSVBVM60.DLL___vbaVar2Vec
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.MSVBVM60.DLL___vbaAryMove
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 6
mov dword [ebp - 0x9c], 0xff
mov dword [ebp - 0x98], 1
and dword [ebp - 0x60], 0
jmp 0x41789a
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x98]
jo 0x4182ca
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x9c]
jg 0x41796c
mov dword [ebp - 4], 7
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 8
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 9
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x417907
and dword [ebp - 0xc4], 0
jmp 0x417912
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x60]
call sub.MSVBVM60.DLL___vbaI2I4
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x30]
mov word [edx + ecx*2], ax
mov dword [ebp - 4], 0xb
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xc
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xd
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0xe
jmp 0x417888
mov dword [ebp - 4], 0xf
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x10
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x11
and dword [ebp - 0x60], 0
mov dword [ebp - 4], 0x12
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x13
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x14
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x15
and dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0x16
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x17
and dword [ebp - 0x24], 0
mov dword [ebp - 4], 0x18
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x19
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1a
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1b
mov dword [ebp - 0xa4], 0xff
mov dword [ebp - 0xa0], 1
and dword [ebp - 0x60], 0
jmp 0x417a6b
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0xa0]
jo 0x4182ca
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0xa4]
jg 0x417d4f
mov dword [ebp - 4], 0x1c
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1d
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x417ab2
and dword [ebp - 0xc8], 0
jmp 0x417abd
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
movsx eax, word [ecx + eax*2]
mov esi, dword [ebp - 0x5c]
add esi, eax
jo 0x4182ca
push dword [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaLenBstr
mov ecx, eax
mov eax, dword [ebp - 0x60]
cdq
idiv ecx
push edx
push dword [ebp - 0x48]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx eax, byte [eax]
add esi, eax
jo 0x4182ca
mov eax, esi
cdq
mov ecx, 0x100
idiv ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0x1e
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x1f
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x20
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x21
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x22
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x417b77
and dword [ebp - 0xcc], 0
jmp 0x417b82
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
mov cx, word [ecx + eax*2]
call sub.MSVBVM60.DLL___vbaUI1I2
mov byte [ebp - 0x44], al
mov dword [ebp - 4], 0x23
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x24
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x25
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x26
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x27
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x100
jae 0x417c08
and dword [ebp - 0xd0], 0
jmp 0x417c13
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x417c31
and dword [ebp - 0xd4], 0
jmp 0x417c3c
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x30]
mov dx, word [esi + edx*2]
mov word [ecx + eax*2], dx
mov dword [ebp - 4], 0x28
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x29
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x2a
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x2b
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x2c
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x2d
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x417cda
and dword [ebp - 0xd8], 0
jmp 0x417ce5
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xd8], eax
movzx ax, byte [ebp - 0x44]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x30]
mov word [edx + ecx*2], ax
mov dword [ebp - 4], 0x2e
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x2f
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x30
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x31
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x32
jmp 0x417a59
mov dword [ebp - 4], 0x33
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x34
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x35
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x36
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x37
and dword [ebp - 0x60], 0
mov dword [ebp - 4], 0x38
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x39
and dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0x3a
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3b
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3c
and dword [ebp - 0x24], 0
mov dword [ebp - 4], 0x3d
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3e
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x3f
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x84], 0x6011
push 0
push 0x40
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL_rtcStrConvVar2
lea eax, [ebp - 0x70]
push eax
call sub.MSVBVM60.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaStrMove
lea ecx, [ebp - 0x70]
call sub.MSVBVM60.DLL___vbaFreeVar
mov dword [ebp - 4], 0x41
push dword [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaLenBstr
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 1
and dword [ebp - 0x60], 0
jmp 0x417eab
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0xa8]
jo 0x4182ca
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0xac]
jg 0x41826b
mov dword [ebp - 4], 0x42
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x43
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x44
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x45
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x46
mov eax, dword [ebp - 0x5c]
add eax, 1
jo 0x4182ca
cdq
mov ecx, 0x100
idiv ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0x47
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x48
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x49
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x4a
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0x4b
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x417f8f
and dword [ebp - 0xdc], 0
jmp 0x417f9a
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
movsx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x50]
add ecx, eax
jo 0x4182ca
mov eax, ecx
cdq
mov ecx, 0x100
idiv ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0x4c
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x4d
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x4e
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x4f
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x50
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x418030
and dword [ebp - 0xe0], 0
jmp 0x41803b
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
mov cx, word [ecx + eax*2]
call sub.MSVBVM60.DLL___vbaUI1I2
mov byte [ebp - 0x44], al
mov dword [ebp - 4], 0x51
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x52
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x100
jae 0x418088
and dword [ebp - 0xe4], 0
jmp 0x418093
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x4180b1
and dword [ebp - 0xe8], 0
jmp 0x4180bc
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x30]
mov dx, word [esi + edx*2]
mov word [ecx + eax*2], dx
mov dword [ebp - 4], 0x53
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x54
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x41810e
and dword [ebp - 0xec], 0
jmp 0x418119
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xec], eax
movzx ax, byte [ebp - 0x44]
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x30]
mov word [edx + ecx*2], ax
mov dword [ebp - 4], 0x55
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x56
mov dword [ebp - 0x58], 0x100
mov dword [ebp - 4], 0x57
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0x100
jae 0x418171
and dword [ebp - 0xf0], 0
jmp 0x41817c
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0x100
jae 0x41819a
and dword [ebp - 0xf4], 0
jmp 0x4181a5
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x30]
mov ax, word [ecx + eax*2]
add ax, word [esi + edx*2]
jo 0x4182ca
movsx eax, ax
cdq
idiv dword [ebp - 0x58]
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 0x100
jae 0x4181e7
and dword [ebp - 0xf8], 0
jmp 0x4181f2
call sub.MSVBVM60.DLL___vbaGenerateBoundsError
mov dword [ebp - 0xf8], eax
push dword [ebp - 0x60]
mov eax, dword [ebp + 8]
push dword [eax]
call sub.MSVBVM60.DLL___vbaDerefAry1
movzx cx, byte [eax]
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x30]
xor cx, word [edx + eax*2]
call sub.MSVBVM60.DLL___vbaUI1I2
mov bl, al
push dword [ebp - 0x60]
mov eax, dword [ebp + 8]
push dword [eax]
call sub.MSVBVM60.DLL___vbaDerefAry1
mov byte [eax], bl
mov dword [ebp - 4], 0x58
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x59
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x5a
push 0
call fcn.0040587c
call sub.MSVBVM60.DLL___vbaSetSystemError
mov dword [ebp - 4], 0x5b
jmp 0x417e99
push 0x4182b9
jmp 0x418286
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
lea eax, [ebp - 0x48]
push eax
push 0
call sub.MSVBVM60.DLL___vbaAryDestruct
lea ecx, [ebp - 0x4c]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x54]
call sub.MSVBVM60.DLL___vbaFreeStr
ret
call sub.MSVBVM60.DLL___vbaErrorOverflow