Function at 0x59d810
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x406016
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403a18
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
xor edi, edi
push eax
push esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
call fcn.0059d1d0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], eax
push ecx
push esi
call fcn.0059d1d0
lea edx, [ebp - 0x44]
mov dword [ebp - 0x40], eax
push edx
push esi
mov dword [ebp - 0x44], eax
call fcn.0059d220
add eax, dword [ebp - 0x40]
jo 0x59db92
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0059d220
mov ecx, dword [ebp - 0x40]
add eax, ecx
lea ecx, [ebp - 0x44]
push ecx
push esi
jo 0x59db92
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
call fcn.0059d220
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x44]
add eax, ecx
push edx
jo 0x59db92
push esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
call fcn.0059d220
add eax, dword [ebp - 0x40]
jo 0x59db92
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.0059d220
mov ebx, dword [ebp - 0x40]
lea ecx, [ebp - 0x44]
add eax, ebx
push ecx
jo 0x59db92
push esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
call fcn.0059d1d0
lea edx, [ebp - 0x44]
mov dword [ebp - 0x40], eax
push edx
push esi
call fcn.0059d2a0
mov ecx, eax
mov eax, dword [ebp - 0x40]
add ecx, eax
jo 0x59db92
mov dword [ebp - 0x20], ecx
cmp eax, ecx
jge 0x59db4a
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.0059d1d0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], eax
push ecx
push esi
call fcn.0059d1d0
mov ecx, dword [esi]
mov dword [ebp - 0x30], eax
cmp ecx, edi
je 0x59d970
cmp word [ecx], 1
jne 0x59d970
mov edx, dword [ecx + 0x14]
mov ebx, eax
add ebx, 2
jo 0x59db92
sub ebx, edx
mov edx, dword [ecx + 0x10]
cmp ebx, edx
jb 0x59d96b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x64], ebx
jmp 0x59d97c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi]
cmp ecx, edi
je 0x59d9a7
cmp word [ecx], 1
jne 0x59d9a7
mov edx, dword [ecx + 0x14]
mov ebx, eax
add ebx, 3
jo 0x59db92
sub ebx, edx
mov edx, dword [ecx + 0x10]
cmp ebx, edx
jb 0x59d9b2
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x59d9af
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [esi]
cmp ecx, edi
je 0x59d9dd
cmp word [ecx], 1
jne 0x59d9dd
mov edx, dword [ecx + 0x14]
add eax, 4
jo 0x59db92
sub eax, edx
mov edi, eax
mov eax, dword [ecx + 0x10]
cmp edi, eax
jb 0x59d9e5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x59d9e5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edi, eax
mov edx, dword [esi]
xor eax, eax
mov ecx, dword [edx + 0xc]
mov dl, byte [ecx + ebx]
mov ebx, dword [ebp - 0x64]
cmp dl, 4
setne al
xor edx, edx
cmp byte [ecx + ebx], 0x55
mov bl, byte [ecx + edi]
setne dl
or eax, edx
neg eax
sbb eax, eax
xor edx, edx
neg eax
cmp bl, 3
setne dl
or eax, edx
jne 0x59da4b
lea eax, [ebp - 0x30]
push eax
push esi
call fcn.0059d220
mov ecx, dword [ebp - 0x30]
add eax, ecx
lea ecx, [ebp - 0x34]
push ecx
push esi
jo 0x59db92
mov dword [ebp - 0x34], eax
call fcn.0059d1d0
lea edx, [ebp - 0x34]
mov ebx, eax
push edx
push esi
call fcn.0059d2a0
cmp eax, 0xa
jg 0x59da6d
lea eax, [ebp - 0x40]
push eax
push esi
call fcn.0059d220
mov ecx, dword [ebp - 0x40]
add eax, ecx
mov ecx, dword [ebp - 0x20]
jo 0x59db92
mov dword [ebp - 0x40], eax
xor edi, edi
jmp 0x59d91d
sub eax, 0xb
push 0
jo 0x59db92
mov edi, eax
add ebx, 0xb
mov ecx, edi
lea edx, [ebp - 0x38]
jo 0x59db92
sub ecx, 1
mov dword [ebp - 0x3c], ebx
jo 0x59db92
push ecx
push 1
push 0x11
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
sub edi, 1
jo 0x59db92
mov dword [ebp - 0x5c], edi
xor ebx, ebx
cmp ebx, dword [ebp - 0x5c]
jg 0x59db4a
mov eax, dword [esi]
test eax, eax
je 0x59daef
cmp word [eax], 1
jne 0x59daef
mov edi, dword [ebp - 0x3c]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edi, ebx
jo 0x59db92
sub edi, edx
cmp edi, ecx
jb 0x59daea
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x68], edi
jmp 0x59daf8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x59db20
cmp word [ecx], 1
jne 0x59db20
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
mov edi, ebx
sub edi, edx
cmp edi, eax
jb 0x59db1c
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x38]
mov eax, edi
jmp 0x59db29
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x38]
mov edx, dword [esi]
mov edi, dword [ebp - 0x68]
mov ecx, dword [ecx + 0xc]
mov edx, dword [edx + 0xc]
mov dl, byte [edx + edi]
mov byte [ecx + eax], dl
mov eax, 1
add eax, ebx
jo 0x59db92
mov ebx, eax
jmp 0x59dab8
lea eax, [ebp - 0x38]
push eax
call fcn.0059d460
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push 0x59db7c
jmp 0x59db6f
lea ecx, [ebp - 0x38]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop