Function at 0x535fa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x412af6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x402858
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x4c], esi
push 1
call sub.MSVBVM50.DLL___vbaOnError
cmp word [0x782024], si
je 0x535fec
fld dword [0x4013d4]
jmp 0x535ff2
fld dword [0x4013d8]
fstp dword [ebp - 0x38]
push esi
mov edi, dword [ebp + 8]
movsx eax, word [edi]
push eax
push 0xfffffffffffffffe
push 2
pop ebx
push ebx
push ebx
push esi
push 0x782948
push 4
push esi
call sub.MSVBVM50.DLL___vbaRedim
add esp, 0x24
fldz
fstp dword [ebp - 0x48]
fldz
fstp dword [ebp - 0x34]
mov di, word [edi]
mov dword [ebp - 0x54], edi
push 1
pop eax
mov dword [ebp - 0x28], eax
cmp di, ax
jl 0x5362db
mov edi, dword [ebp + 0x14]
jmp 0x53603b
xor esi, esi
cmp word [0x782024], si
movsx esi, word [ebp - 0x28]
push esi
mov eax, dword [ebp + 0xc]
movsx eax, word [eax]
push eax
movsx eax, word [edi]
push eax
push dword [0x782814]
push 3
je 0x53606b
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x14
fld dword [eax]
fstp dword [ebp - 0x20]
jmp 0x536088
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x14
fld dword [eax]
fmul dword [0x40149c]
fstp dword [ebp - 0x20]
fnstsw ax
test al, 0xd
jne 0x5362f1
push esi
mov eax, dword [ebp + 0x10]
movsx eax, word [eax]
push eax
movsx eax, word [edi]
push eax
push dword [0x782814]
push 3
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x14
fld dword [eax]
fsub dword [ebp - 0x34]
fadd st(0), st(0)
fstp dword [ebp - 0x30]
fnstsw ax
test al, 0xd
jne 0x5362f1
push 0
push esi
push dword [0x78296c]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fld dword [ebp - 0x30]
fstp dword [eax]
push 1
push esi
push dword [0x78296c]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fld dword [ebp - 0x20]
fstp dword [eax]
fld dword [ebp - 0x30]
cmp dword [section..data], 0
jne 0x5360fa
fdiv dword [0x401420]
jmp 0x536105
push dword [0x401420]
call sub.MSVBVM50.DLL__adj_fdiv_m32
fmul dword [ebp - 0x20]
fstp dword [ebp - 0x3c]
fnstsw ax
test al, 0xd
jne 0x5362f1
fld dword [ebp - 0x30]
cmp dword [section..data], 0
jne 0x536129
fdiv dword [0x401420]
jmp 0x536134
push dword [0x401420]
call sub.MSVBVM50.DLL__adj_fdiv_m32
fadd dword [ebp - 0x34]
fstp dword [ebp - 0x24]
fnstsw ax
test al, 0xd
jne 0x5362f1
fld dword [ebp - 0x24]
mov eax, dword [ebp + 0x18]
fsub dword [eax]
fstp dword [ebp - 0x40]
fnstsw ax
test al, 0xd
jne 0x5362f1
fldz
fstp dword [ebp - 0x44]
fldz
call sub.MSVBVM50.DLL___vbaFpR4
fcomp dword [ebp - 0x40]
fnstsw ax
sahf
jae 0x536180
fld dword [ebp - 0x40]
fmul dword [ebp - 0x38]
fstp dword [ebp - 0x44]
fnstsw ax
test al, 0xd
jne 0x5362f1
fld dword [ebp - 0x48]
fadd dword [ebp - 0x3c]
fsub dword [ebp - 0x44]
fstp dword [ebp - 0x2c]
fnstsw ax
test al, 0xd
jne 0x5362f1
fld dword [ebp - 0x3c]
fadd st(0), st(0)
fadd dword [ebp - 0x48]
fstp dword [ebp - 0x48]
fnstsw ax
test al, 0xd
jne 0x5362f1
fldz
call sub.MSVBVM50.DLL___vbaFpR4
fcomp dword [ebp - 0x2c]
fnstsw ax
sahf
jne 0x5361c3
fld dword [0x401a30]
fstp dword [ebp - 0x2c]
push esi
push 7
movsx eax, word [edi]
push eax
push dword [0x782814]
push 3
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x14
fld dword [eax]
fmul qword [0x401578]
cmp dword [section..data], 0
jne 0x5361f0
fdiv dword [ebp - 0x2c]
jmp 0x5361f8
push dword [ebp - 0x2c]
call sub.MSVBVM50.DLL__adj_fdiv_m32
fnstsw ax
test al, 0xd
jne 0x5362f1
fstp dword [ebp - 0x68]
fld dword [ebp - 0x68]
push esi
push 0
push dword [0x782948]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fstp dword [eax]
push esi
push 6
movsx eax, word [edi]
push eax
push dword [0x782814]
push 3
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x14
fld dword [eax]
fmul qword [0x401578]
fnstsw ax
test al, 0xd
jne 0x5362f1
fstp dword [ebp - 0x6c]
fld dword [ebp - 0x6c]
push esi
push 0xfffffffffffffffe
push dword [0x782948]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fstp dword [eax]
push esi
push 0xffffffffffffffff
push dword [0x782948]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fld dword [ebp - 0x24]
fstp dword [eax]
fld dword [ebp - 0x34]
fadd dword [ebp - 0x30]
fstp dword [ebp - 0x34]
fnstsw ax
test al, 0xd
jne 0x5362f1
push esi
push 1
push dword [0x782948]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fld dword [ebp - 0x34]
fstp dword [eax]
push esi
push ebx
push dword [0x782948]
push ebx
call sub.MSVBVM50.DLL___vbaDerefAry
add esp, 0x10
fld dword [ebp - 0x48]
fstp dword [eax]
mov ax, word [ebp - 0x28]
add ax, 1
jo 0x5362f6
mov dword [ebp - 0x28], eax
cmp ax, word [ebp - 0x54]
jle 0x536039
jmp 0x5362db
call sub.MSVBVM50.DLL___vbaExitProc
mov ecx, dword [ebp - 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x14
jmp fcn.00412afc
call sub.MSVBVM50.DLL___vbaErrorOverflow