Function at 0x4ea4b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4012f0
mov eax, dword [0x503098]
xor esi, esi
push eax
push 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
xor ecx, ecx
mov dword [ebp - 0x90], eax
mov dword [0x503128], ecx
mov eax, dword [ebp - 0x90]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
cmp ecx, eax
jg 0x4ead47
mov ecx, dword [0x503098]
lea edx, [ebp - 0x7c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x7c]
cmp ecx, esi
je 0x4ea572
cmp word [ecx], 1
jne 0x4ea572
mov esi, dword [0x503128]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x4ea565
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x7c]
lea eax, [esi + esi*2]
shl eax, 3
sub eax, esi
shl eax, 2
jmp 0x4ea57b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x7c]
mov esi, dword [ecx + 0xc]
add esi, eax
mov eax, dword [esi + 0xc]
push eax
push 0x40cb8c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
je 0x4ea5b3
cmp word [esi + 0x2a], 0xffff
jne 0x4ea5b3
mov cx, word [esi + 0x26]
mov dword [esi + 0x10], 0
sub cx, 4
jo 0x4eb32e
mov word [esi + 0x26], cx
mov eax, dword [0x503010]
test eax, eax
jne 0x4ea5d1
push 0x503010
push 0x406f1c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503010]
mov edx, dword [eax]
push eax
call dword [edx + 0x3ac]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov edi, eax
lea edx, [ebp - 0x5c]
push edx
push edi
mov ecx, dword [edi]
call dword [ecx + 0x80]
test eax, eax
fnclex
jge 0x4ea60c
push 0x80
push 0x40bf8c
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
xor eax, eax
mov al, byte [esi + 0x52]
cmp eax, 2
mov dword [ebp - 0x70], eax
jb 0x4ea61f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
xor eax, eax
mov al, byte [esi + 0x52]
mov edi, eax
cmp edi, 2
jb 0x4ea631
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
movsx ecx, word [esi + 0x24]
mov edx, dword [0x50306c]
mov dword [ebp - 0xa0], ecx
fild dword [ebp - 0xa0]
movsx eax, word [edx + edi*2]
fstp dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
fild dword [ebp - 0xa8]
fstp dword [ebp - 0xac]
fld dword [ebp - 0xac]
fadd dword [ebp - 0x5c]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFpR4]
fcomp dword [ebp - 0xa4]
fnstsw ax
test ah, 1
je 0x4ea690
mov ebx, 1
jmp 0x4ea692
xor ebx, ebx
mov ecx, dword [esi + 0xc]
push ecx
push 0x40cb8c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edx, dword [0x50306c]
mov edi, eax
mov eax, dword [ebp - 0x70]
neg edi
mov cx, word [edx + eax*2]
sbb edi, edi
xor edx, edx
inc edi
neg cx
neg edi
cmp word [esi + 0x24], cx
lea ecx, [ebp - 0x24]
setl dl
neg edx
or edi, edx
neg ebx
or edi, ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
test di, di
je 0x4ea8b5
call fcn.00409c2c
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 3
call dword [sym.imp.MSVBVM60.DLL_rtcRandomize]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x34]
call ebx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x2c], 0x80020004
push edx
mov dword [ebp - 0x34], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012ec]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
call dword [sym.imp.MSVBVM60.DLL___vbaFpR4]
fcomp dword [0x401200]
fnstsw ax
test ah, 0x40
je 0x4ea755
mov edi, 1
jmp 0x4ea757
xor edi, edi
lea ecx, [ebp - 0x34]
call ebx
neg edi
test di, di
je 0x4ea8b5
mov eax, dword [0x503094]
mov edi, 0x80020004
push eax
push 1
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], 0xa
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
add eax, 1
lea ecx, [ebp - 0x34]
jo 0x4eb32e
mov dword [ebp - 0xb0], eax
push ecx
fild dword [ebp - 0xb0]
fstp qword [ebp - 0xb8]
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul qword [ebp - 0xb8]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fstp qword [ebp - 0x4c]
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x54], 5
call dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
lea ecx, [ebp - 0x34]
call ebx
mov eax, dword [0x503094]
mov dword [ebp - 0x2c], edi
test eax, eax
mov dword [ebp - 0x34], 0xa
je 0x4ea823
cmp word [eax], 1
jne 0x4ea823
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov edi, eax
mov eax, dword [0x503094]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
sub edi, edx
cmp edi, ecx
jb 0x4ea816
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
lea ebx, [edi + edi*2]
shl ebx, 3
sub ebx, edi
shl ebx, 2
jmp 0x4ea82b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012e8]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fadd dword [0x401230]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFpR4]
mov ecx, dword [0x503094]
mov edx, dword [ecx + 0xc]
movsx eax, word [edx + ebx + 0x28]
mov dword [ebp - 0xbc], eax
fild dword [ebp - 0xbc]
fstp dword [ebp - 0xc0]
fcomp dword [ebp - 0xc0]
fnstsw ax
test ah, 0x41
je 0x4ea895
mov edi, 1
jmp 0x4ea897
xor edi, edi
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
neg edi
test di, di
je 0x4ea8b5
lea ecx, [ebp - 0x20]
push ecx
push 0x503128
call fcn.004ef100
mov edx, dword [esi + 0xc]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
push edx
push 0x40cb8c
call ebx
test eax, eax
je 0x4eaa7e
cmp word [esi + 0x14], 0
jne 0x4eaa7e
cmp word [esi + 0x2a], 0
jne 0x4eaa7e
movsx eax, word [esi + 0x24]
mov dword [ebp - 0xc4], eax
sub esp, 8
fild dword [ebp - 0xc4]
fstp qword [ebp - 0xcc]
fld qword [ebp - 0xcc]
fmul qword [0x4012e0]
fld dword [esi + 8]
fadd dword [0x401230]
fnstsw ax
test al, 0xd
jne 0x4eb329
cmp dword [section..data], 0
jne 0x4ea929
fdivp st(1)
jmp 0x4ea932
push eax
mov al, 0xd
call sub.MSVBVM60.DLL__adj_fdiv_r
pop eax
fnstsw ax
test al, 0xd
jne 0x4eb329
fstp qword [esp]
call dword [sym.imp.MSVBVM60.DLL_rtcCos]
movsx ecx, word [esi + 6]
fstp qword [ebp - 0x64]
movsx edx, word [esi + 0x26]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xdc], edx
fild dword [ebp - 0xd0]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
fstp qword [ebp - 0xd8]
fld qword [ebp - 0xd8]
fmul qword [ebp - 0x64]
fild dword [ebp - 0xdc]
fstp qword [ebp - 0xe4]
fadd qword [ebp - 0xe4]
fnstsw ax
test al, 0xd
jne 0x4eb329
call edi
mov word [esi + 0x26], ax
mov ax, word [esi + 0x32]
cmp ax, 0x29a
jne 0x4ea9ba
mov ax, word [esi + 4]
add ax, word [esi + 0x24]
jo 0x4eb32e
mov word [esi + 0x24], ax
jmp 0x4eaa84
add ax, 1
jo 0x4eb32e
cmp ax, 0xa
mov word [esi + 0x32], ax
jge 0x4ea9ea
mov cx, word [esi + 4]
add cx, word [esi + 0x24]
jo 0x4eb32e
cmp ax, 0xa
mov word [esi + 0x24], cx
jl 0x4eaa6f
movsx edx, word [esi + 4]
mov dword [ebp - 0xe8], edx
fild dword [ebp - 0xe8]
movsx eax, ax
fstp qword [ebp - 0xf0]
mov dword [ebp - 0xf4], eax
fild dword [ebp - 0xf4]
movsx ecx, word [esi + 0x24]
fstp qword [ebp - 0xfc]
fld qword [ebp - 0xf0]
cmp dword [section..data], 0
jne 0x4eaa30
fdiv qword [ebp - 0xfc]
jmp 0x4eaa41
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
call sub.MSVBVM60.DLL__adj_fdiv_m64
mov dword [ebp - 0x100], ecx
fmul qword [0x4012d8]
fild dword [ebp - 0x100]
fstp qword [ebp - 0x108]
fadd qword [ebp - 0x108]
fnstsw ax
test al, 0xd
jne 0x4eb329
call edi
mov word [esi + 0x24], ax
cmp word [esi + 0x32], 0x50
jl 0x4eaa84
mov word [esi + 0x32], 0
jmp 0x4eaa84
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov edx, dword [esi + 0xc]
push edx
push 0x40cb8c
call ebx
test eax, eax
je 0x4eab84
cmp word [esi + 0x14], 0xffff
jne 0x4eab84
cmp word [esi + 0x2a], 0
jne 0x4eab84
xor ebx, ebx
mov bl, byte [esi + 0x52]
cmp ebx, 2
jb 0x4eaabd
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [0x50306c]
fld dword [0x5030c4]
movsx ecx, word [eax + ebx*2]
mov dword [ebp - 0x10c], ecx
fild dword [ebp - 0x10c]
fstp qword [ebp - 0x114]
fld qword [ebp - 0x114]
cmp dword [section..data], 0
jne 0x4eaaf5
fdiv qword [0x4012d0]
jmp 0x4eab06
push dword [0x4012d4]
push dword [0x4012d0]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fsubp st(1)
fnstsw ax
test al, 0xd
jne 0x4eb329
call edi
xor ebx, ebx
mov word [esi + 0x24], ax
mov bl, byte [esi + 0x52]
cmp ebx, 2
jb 0x4eab28
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x503088]
fld dword [0x5030c8]
movsx eax, word [edx + ebx*2]
mov dword [ebp - 0x118], eax
fild dword [ebp - 0x118]
fstp qword [ebp - 0x120]
fld qword [ebp - 0x120]
cmp dword [section..data], 0
jne 0x4eab61
fdiv qword [0x4012d0]
jmp 0x4eab72
push dword [0x4012d4]
push dword [0x4012d0]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fsubp st(1)
fnstsw ax
test al, 0xd
jne 0x4eb329
call edi
mov word [esi + 0x26], ax
mov eax, dword [0x503010]
test eax, eax
jne 0x4eaba2
push 0x503010
push 0x406f1c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503010]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3a0]
lea edx, [ebp - 0x24]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov ebx, eax
lea ecx, [ebp - 0x5c]
push ecx
push ebx
mov eax, dword [ebx]
call dword [eax + 0x88]
test eax, eax
fnclex
jge 0x4eabdd
push 0x88
push 0x40bf8c
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
movsx edx, word [esi + 0x26]
mov dword [ebp - 0x124], edx
fild dword [ebp - 0x124]
fstp qword [ebp - 0x12c]
fld dword [ebp - 0x5c]
cmp dword [section..data], 0
jne 0x4eac07
fdiv qword [0x4012c8]
jmp 0x4eac18
push dword [0x4012cc]
push dword [0x4012c8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fadd dword [0x5030a4]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [0x401098]
fcomp qword [ebp - 0x12c]
fnstsw ax
test ah, 0x41
jne 0x4eac42
mov ebx, 1
jmp 0x4eac44
xor ebx, ebx
mov eax, dword [esi + 0xc]
push eax
push 0x40cb8c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edi, eax
lea ecx, [ebp - 0x24]
neg edi
sbb edi, edi
neg edi
neg edi
neg ebx
and edi, ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call ebx
test di, di
je 0x4ead17
mov word [esi + 0x2a], 0xffff
mov word [esi + 0x14], 0
mov eax, dword [0x503210]
test eax, eax
jne 0x4eac9f
push 0x503210
push 0x406a0c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503210]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x304]
lea edx, [ebp - 0x24]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov edi, eax
lea ecx, [ebp - 0x58]
push ecx
push edi
mov eax, dword [edi]
call dword [eax + 0xe0]
test eax, eax
fnclex
jge 0x4eacda
push 0xe0
push 0x40a024
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
xor edx, edx
lea ecx, [ebp - 0x24]
cmp word [esi + 0x58], dx
sete dl
neg edx
xor eax, eax
cmp word [ebp - 0x58], 1
sete al
neg eax
and edx, eax
mov edi, edx
call ebx
test di, di
je 0x4ead17
mov word [esi + 0x58], 0xffff
mov ecx, dword [0x5031e4]
push ecx
call fcn.0040ada0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [0x503128]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, 1
add ecx, eax
jo 0x4eb32e
mov dword [0x503128], ecx
xor esi, esi
jmp 0x4ea518
mov eax, dword [0x503110]
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
xor ecx, ecx
mov dword [ebp - 0x98], eax
mov dword [0x503128], ecx
cmp ecx, dword [ebp - 0x98]
jg 0x4eb2e1
mov ecx, dword [0x503110]
lea edx, [ebp - 0x80]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x80]
cmp ecx, esi
je 0x4eadb0
cmp word [ecx], 1
jne 0x4eadb0
mov esi, dword [0x503128]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x4eada8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x80]
lea eax, [esi + esi*2]
shl eax, 4
jmp 0x4eadb9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x80]
mov esi, dword [ecx + 0xc]
add esi, eax
mov eax, dword [esi + 4]
push eax
push 0x40cb8c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
je 0x4eae10
cmp word [esi + 0x12], 0
jne 0x4eae10
cmp word [esi + 0x14], 0
jne 0x4eae10
cmp word [esi + 0x1c], 0xffff
jne 0x4eae10
mov ax, word [esi + 0x20]
add ax, 1
jo 0x4eb32e
cmp ax, word [esi + 0x22]
mov word [esi + 0x20], ax
jl 0x4eae10
mov cx, word [esi + 0x1e]
add cx, 0xf
jo 0x4eb32e
mov word [esi + 0x1e], cx
cmp word [esi + 0x1e], 0x168
jl 0x4eafdf
mov word [esi + 0x20], 0
call fcn.00409c2c
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], 3
call dword [sym.imp.MSVBVM60.DLL_rtcRandomize]
lea ecx, [ebp - 0x34]
call edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], 0x80020004
push ecx
mov dword [ebp - 0x34], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012c4]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fadd dword [0x4012c0]
fnstsw ax
test al, 0xd
jne 0x4eb329
call ebx
lea ecx, [ebp - 0x34]
mov word [esi + 0x22], ax
call edi
call fcn.00409c2c
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], 3
call dword [sym.imp.MSVBVM60.DLL_rtcRandomize]
lea ecx, [ebp - 0x34]
call edi
cmp word [esi + 0x28], 0xffff
mov dword [ebp - 0x2c], 0x80020004
mov dword [ebp - 0x34], 0xa
jne 0x4eaefc
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012bc]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fsub dword [0x4012b8]
jmp 0x4eaf22
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012b4]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fsub dword [0x4012b0]
fnstsw ax
test al, 0xd
jne 0x4eb329
call ebx
lea ecx, [ebp - 0x34]
mov word [esi + 0x24], ax
call edi
call fcn.00409c2c
mov dword [ebp - 0x5c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 3
call dword [sym.imp.MSVBVM60.DLL_rtcRandomize]
lea ecx, [ebp - 0x34]
call edi
cmp word [esi + 0x28], 0xffff
mov dword [ebp - 0x2c], 0x80020004
mov dword [ebp - 0x34], 0xa
jne 0x4eaf9e
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012bc]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fsub dword [0x4012b8]
jmp 0x4eafc4
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcRandomNext]
fmul dword [0x4012b4]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [sym.imp.MSVBVM60.DLL___vbaFPInt]
fsub dword [0x4012b0]
fnstsw ax
test al, 0xd
jne 0x4eb329
call ebx
lea ecx, [ebp - 0x34]
mov word [esi + 0x26], ax
call edi
mov word [esi + 0x1e], 0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
push ecx
push 0x40cb8c
call edi
test eax, eax
je 0x4eb014
cmp word [esi + 0x14], 0xffff
jne 0x4eb014
mov dx, word [esi + 2]
mov dword [esi + 0x18], 0
sub dx, 4
jo 0x4eb32e
mov word [esi + 2], dx
mov eax, dword [esi + 4]
push eax
push 0x40cb8c
call edi
test eax, eax
je 0x4eb10d
cmp word [esi + 0x12], 0xffff
jne 0x4eb10d
xor ecx, ecx
mov cl, byte [esi + 0x2a]
mov edi, ecx
cmp edi, 2
jb 0x4eb044
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x50306c]
fld dword [0x5030c4]
movsx eax, word [edx + edi*2]
mov dword [ebp - 0x130], eax
fild dword [ebp - 0x130]
fstp qword [ebp - 0x138]
fld qword [ebp - 0x138]
cmp dword [section..data], 0
jne 0x4eb07d
fdiv qword [0x4012d0]
jmp 0x4eb08e
push dword [0x4012d4]
push dword [0x4012d0]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fsubp st(1)
fnstsw ax
test al, 0xd
jne 0x4eb329
call ebx
xor ecx, ecx
mov word [esi], ax
mov cl, byte [esi + 0x2a]
mov edi, ecx
cmp edi, 2
jb 0x4eb0b1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edx, dword [0x503088]
fld dword [0x5030c8]
movsx eax, word [edx + edi*2]
mov dword [ebp - 0x13c], eax
fild dword [ebp - 0x13c]
fstp qword [ebp - 0x144]
fld qword [ebp - 0x144]
cmp dword [section..data], 0
jne 0x4eb0ea
fdiv qword [0x4012d0]
jmp 0x4eb0fb
push dword [0x4012d4]
push dword [0x4012d0]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fsubp st(1)
fnstsw ax
test al, 0xd
jne 0x4eb329
call ebx
mov word [esi + 2], ax
mov eax, dword [0x503010]
test eax, eax
jne 0x4eb12b
push 0x503010
push 0x406f1c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503010]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3a0]
lea edx, [ebp - 0x24]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov edi, eax
lea ecx, [ebp - 0x5c]
push ecx
push edi
mov eax, dword [edi]
call dword [eax + 0x88]
test eax, eax
fnclex
jge 0x4eb166
push 0x88
push 0x40bf8c
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
movsx edx, word [esi + 2]
mov dword [ebp - 0x148], edx
fild dword [ebp - 0x148]
fstp qword [ebp - 0x150]
fld dword [ebp - 0x5c]
cmp dword [section..data], 0
jne 0x4eb190
fdiv qword [0x4012c8]
jmp 0x4eb1a1
push dword [0x4012cc]
push dword [0x4012c8]
call sub.MSVBVM60.DLL__adj_fdiv_m64
fadd dword [0x5030a4]
fnstsw ax
test al, 0xd
jne 0x4eb329
call dword [0x401098]
fcomp qword [ebp - 0x150]
fnstsw ax
test ah, 0x41
jne 0x4eb1cb
mov ebx, 1
jmp 0x4eb1cd
xor ebx, ebx
mov eax, dword [esi + 4]
push eax
push 0x40cb8c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
mov edi, eax
neg edi
sbb edi, edi
xor ecx, ecx
neg edi
neg edi
cmp word [esi + 0x12], 0xffff
sete cl
neg ecx
and edi, ecx
lea ecx, [ebp - 0x24]
neg ebx
and edi, ebx
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
test di, di
je 0x4eb2af
or ebx, 0xffffffff
mov word [esi + 0x12], 0
mov word [esi + 0x14], bx
mov eax, dword [0x503210]
test eax, eax
jne 0x4eb235
push 0x503210
push 0x406a0c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [0x503210]
mov edx, dword [eax]
push eax
call dword [edx + 0x304]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov edi, eax
lea edx, [ebp - 0x58]
push edx
push edi
mov ecx, dword [edi]
call dword [ecx + 0xe0]
test eax, eax
fnclex
jge 0x4eb270
push 0xe0
push 0x40a024
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
xor eax, eax
cmp word [ebp - 0x58], 1
sete al
xor ecx, ecx
neg eax
cmp word [esi + 0x2e], cx
sete cl
neg ecx
and eax, ecx
lea ecx, [ebp - 0x24]
mov edi, eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
test di, di
je 0x4eb2af
mov word [esi + 0x2e], bx
mov edx, dword [0x5031e4]
push edx
call fcn.0040ada0
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [0x503128]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov eax, 1
add ecx, eax
jo 0x4eb32e
mov dword [0x503128], ecx
xor esi, esi
jmp 0x4ead63
wait
push 0x4eb318
jmp 0x4eb2fc
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea ecx, [ebp - 0x7c]
push ecx
call esi
lea edx, [ebp - 0x80]
push edx
call esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
ret
jmp 0x40168c
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop