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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x405216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404940
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
call fcn.004a2df0
mov eax, dword [0x538bc8]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push eax
push 0x42b908
mov word [0x539848], si
call ebx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x3c]
call edi
push eax
mov eax, dword [0x538c50]
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
mov ecx, dword [0x5390b8]
shl edx, 6
add edx, eax
lea eax, [eax + edx*4]
mov dl, byte [ecx + eax*4 + 0x16]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrUI1]
mov edx, eax
lea ecx, [ebp - 0x40]
call edi
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x44]
call edi
push eax
push 0x42b920
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x40]
push eax
lea edx, [ebp - 0x3c]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
lea eax, [ebp - 0x54]
mov word [0x539604], 1
mov dword [ebp - 0x4c], 0x80020004
push eax
mov dword [ebp - 0x54], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcFreeFile]
lea ecx, [ebp - 0x54]
mov word [0x539612], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [ebp - 0x24]
mov dx, word [0x539612]
push ecx
push edx
push 0xffffffffffffffff
push 0x120
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcFileLen]
mov dword [0x539a48], eax
push esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaRedim]
dec eax
push eax
push 1
push 0x11
push 0x539a44
push 1
push 0x80
call edi
mov cx, word [0x539612]
add esp, 0x1c
push ecx
push 0x539a44
push 0x4206c0
call dword [sym.imp.MSVBVM60.DLL___vbaGetOwner3]
mov dx, word [0x539612]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaFileClose]
mov dword [0x539a48], esi
call fcn.00515010
mov word [0x539848], ax
push esi
movsx eax, ax
push eax
push 1
push 0x41f8d8
push 0x539840
push 0x108
push esi
call edi
movsx ecx, word [0x539848]
mov edi, 1
add esp, 0x1c
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x9c]
jg 0x517f03
mov edx, dword [0x539840]
lea eax, [ebp - 0x68]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x68]
mov eax, edi
sub eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
lea esi, [eax + edx*8]
call fcn.00514ff0
test al, al
mov byte [esi + 0x100], al
jbe 0x5171e8
and eax, 0xff
push 1
push eax
lea edi, [esi + 0x104]
push 1
push 0x41f808
push edi
push 0x10
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor ecx, ecx
mov cl, byte [esi + 0x100]
mov ebx, 1
mov dword [ebp - 0xa4], ecx
cmp ebx, dword [ebp - 0xa4]
jg 0x5171e8
call fcn.00514ff0
test al, al
mov byte [ebp - 0x38], al
jbe 0x51717d
mov ecx, dword [ebp - 0x38]
mov eax, dword [edi]
and ecx, 0xff
push 0
mov dword [ebp - 0x14c], ecx
push ecx
mov ecx, dword [eax + 0x14]
mov edx, ebx
sub edx, ecx
mov ecx, dword [eax + 0xc]
shl edx, 4
push 1
add edx, ecx
push 0
push edx
push 2
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x2c]
cmp ecx, eax
jg 0x51717d
mov eax, dword [edi]
mov ecx, ebx
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 4
mov eax, dword [ecx + edx]
mov dword [ebp - 0x150], eax
call fcn.00514ff0
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2], al
mov eax, dword [edi]
mov edx, ebx
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 4
mov ecx, dword [edx + eax]
mov dword [ebp - 0x150], ecx
call fcn.00514ff0
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 0x2c]
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2 + 1], al
mov ecx, dword [ebp - 0x2c]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x517102
call fcn.00514ff0
mov ecx, dword [edi]
mov edx, ebx
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
shl edx, 4
mov byte [edx + ecx + 0xc], al
call fcn.00515010
mov ecx, dword [edi]
mov edx, ebx
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
shl edx, 4
mov word [edx + ecx + 4], ax
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov eax, dword [edi]
mov ecx, ebx
sub ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
shl ecx, 4
lea ecx, [ecx + eax + 8]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, 1
add ebx, eax
jmp 0x5170aa
xor ebx, ebx
mov eax, 8
cmp ebx, eax
jg 0x51724c
mov ecx, ebx
shl ecx, 4
lea edi, [ecx + esi]
call fcn.00514ff0
mov byte [edi + 0x53], al
call fcn.00515170
fstp dword [edi + 0x58]
call fcn.00514ff0
lea edx, [ebx + 5]
shl edx, 4
mov byte [edx + esi], al
call fcn.00515010
mov word [edi + 0x54], ax
call fcn.00514ff0
mov byte [edi + 0x51], al
call fcn.00514ff0
mov byte [edi + 0x52], al
call fcn.00515170
fstp dword [edi + 0x5c]
call fcn.00515010
mov word [edi + 0x56], ax
mov eax, 1
add ebx, eax
jmp 0x5171ea
call fcn.00515010
mov word [esi + 0x28], ax
call fcn.00514ff0
test al, al
mov byte [esi + 0x1a], al
jbe 0x517267
mov word [esi + 0x18], 0xffff
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, eax
lea ecx, [esi + 0x10]
call ebx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x3c]
call edi
call fcn.00515010
mov word [esi + 0x2e], ax
call fcn.00515010
mov word [esi + 0x32], ax
call fcn.00515170
fstp dword [esi + 0x4c]
call fcn.00515220
mov word [esi + 0x40], ax
call fcn.00515170
fstp dword [esi + 0x48]
call fcn.00515170
fstp dword [esi + 0x44]
call fcn.00514ff0
mov byte [esi + 0x2a], al
call fcn.00515010
mov word [esi + 0x38], ax
call fcn.00515170
fstp dword [esi + 0x3c]
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [esi + 0x14]
call ebx
lea ecx, [ebp - 0x3c]
call edi
call fcn.00515010
mov word [esi + 0x34], ax
call fcn.00515010
mov word [esi + 0x3a], ax
call fcn.00515010
mov word [esi + 0x2c], ax
call fcn.00515010
mov word [esi + 0x36], ax
call fcn.00515170
fstp dword [esi + 0x1c]
call fcn.00515010
mov word [esi + 0x24], ax
call fcn.00515010
mov word [esi + 0x26], ax
call fcn.00515170
fstp dword [esi + 0x20]
call fcn.00515010
mov word [esi + 0x30], ax
call fcn.00515010
mov word [esi + 8], ax
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, esi
call ebx
lea ecx, [ebp - 0x3c]
call edi
call fcn.00514ff0
mov byte [esi + 4], al
call fcn.00514ff0
mov byte [esi + 5], al
call fcn.00514ff0
mov byte [esi + 6], al
mov ax, word [esi + 8]
test ax, ax
jle 0x517ee3
mov ecx, dword [0x539840]
push 1
movsx eax, ax
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [ebp - 0x18]
push 1
sub eax, edx
push 0x41f868
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx*8 + 0xc]
push ecx
push 0x80
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
movsx edx, word [esi + 8]
mov esi, 1
add esp, 0x1c
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0xbc]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
cmp esi, eax
jg 0x517ee3
mov eax, dword [0x539840]
lea ecx, [ebp - 0x70]
push eax
push ecx
call edi
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x18]
sub eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*8 + 0xc]
lea edx, [ebp - 0x6c]
push ecx
push edx
call edi
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub esi, ecx
shl esi, 7
add esi, edx
mov dword [ebp - 0x80], esi
call fcn.00515010
mov word [esi + 0x64], ax
call fcn.00514ff0
mov byte [esi + 0x66], al
call fcn.00515010
mov word [esi + 4], ax
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
mov ecx, esi
call ebx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.00514ff0
mov byte [esi + 0x5f], al
call fcn.00514ff0
mov byte [esi + 0x32], al
call fcn.00514ff0
mov byte [esi + 0x5e], al
call fcn.005150c0
mov dword [esi + 0x44], eax
call fcn.00514ff0
mov byte [esi + 0x22], al
call fcn.00514ff0
mov byte [esi + 0x36], al
call fcn.00515010
mov word [esi + 0x3a], ax
call fcn.00515010
mov word [esi + 0x3c], ax
call fcn.00515010
mov word [esi + 0x3e], ax
call fcn.00514ff0
mov byte [esi + 0x40], al
call fcn.00514ff0
mov byte [esi + 0x41], al
call fcn.00514ff0
mov byte [esi + 0x42], al
call fcn.00514ff0
mov byte [esi + 0x35], al
call fcn.00514ff0
test al, al
mov byte [esi + 0x5c], al
jbe 0x517553
and eax, 0xff
push 1
push eax
lea ebx, [esi + 0x58]
push 1
push 0
push ebx
push 4
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor eax, eax
mov al, byte [esi + 0x5c]
mov edi, 1
mov dword [ebp - 0xc4], eax
cmp edi, dword [ebp - 0xc4]
jg 0x517553
call fcn.00515010
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov word [ecx + edx*4], ax
call fcn.00514ff0
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*4 + 2], al
call fcn.00514ff0
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*4 + 3], al
mov eax, 1
add edi, eax
jmp 0x517509
call fcn.00514ff0
mov byte [esi + 0x48], al
call fcn.00514ff0
mov byte [esi + 0x49], al
call fcn.00514ff0
mov byte [esi + 0x4a], al
call fcn.005150c0
mov dword [esi + 0x28], eax
call fcn.00514ff0
mov byte [esi + 0x37], al
call fcn.00514ff0
mov byte [esi + 0x1c], al
call fcn.00514ff0
test al, al
mov byte [esi + 0x54], al
jbe 0x517606
and eax, 0xff
push 1
push eax
lea ebx, [esi + 0x50]
push 1
push 0
push ebx
push 8
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor edx, edx
mov dl, byte [esi + 0x54]
mov edi, 1
mov dword [ebp - 0xcc], edx
cmp edi, dword [ebp - 0xcc]
jg 0x517606
call fcn.00515010
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov word [ecx + edx*8 + 4], ax
call fcn.005150c0
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov dword [ecx + edx*8], eax
call fcn.00514ff0
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*8 + 6], al
mov eax, 1
add edi, eax
jmp 0x5175bc
call fcn.00515010
mov word [esi + 0x24], ax
call fcn.00514ff0
mov byte [esi + 0x5d], al
call fcn.00515010
mov word [esi + 0x30], ax
call fcn.00514ff0
mov byte [esi + 0x33], al
call fcn.00514ff0
mov byte [esi + 0x38], al
call fcn.00514ff0
mov byte [esi + 0x34], al
call fcn.00515010
mov word [esi + 0x1e], ax
call fcn.00515010
mov word [esi + 0x20], ax
call fcn.005150c0
mov dword [esi + 0x2c], eax
call fcn.00515010
mov word [esi + 0x4c], ax
call fcn.00514ff0
mov byte [esi + 0x10], al
call fcn.00514ff0
mov byte [esi + 0xf], al
call fcn.00514ff0
mov byte [esi + 0xe], al
call fcn.00514ff0
mov byte [esi + 0xd], al
call fcn.00514ff0
mov byte [esi + 0xa], al
call fcn.00514ff0
mov byte [esi + 9], al
call fcn.00514ff0
mov byte [esi + 8], al
call fcn.00514ff0
mov byte [esi + 0xc], al
call fcn.00514ff0
mov byte [esi + 0xb], al
call fcn.00514ff0
test al, al
mov byte [esi + 0x18], al
jbe 0x517703
and eax, 0xff
push 1
push eax
lea ebx, [esi + 0x14]
push 1
push 2
push ebx
push 2
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor edx, edx
mov dl, byte [esi + 0x18]
mov edi, 1
mov dword [ebp - 0xd4], edx
cmp edi, dword [ebp - 0xd4]
jg 0x517703
call fcn.00515010
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov word [ecx + edx*2], ax
mov eax, 1
add edi, eax
jmp 0x5176df
call fcn.00514ff0
cmp al, 0xff
mov byte [ebp - 0x38], al
jae 0x51778b
mov edi, dword [ebp - 0x38]
push 0
and edi, 0xff
lea edx, [esi + 0x60]
push edi
push 1
push 0
push edx
push 0x3e
push 0
mov dword [ebp - 0x14c], edi
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], edi
jg 0x51778b
xor ebx, ebx
mov eax, 0x1e
cmp ebx, eax
jg 0x517776
mov edi, dword [esi + 0x60]
call fcn.00515010
mov ecx, dword [ebp - 0x34]
mov edx, dword [edi + 0x14]
sub ecx, edx
mov edx, ecx
shl edx, 5
sub edx, ecx
mov ecx, dword [edi + 0xc]
add edx, ebx
mov word [ecx + edx*2], ax
mov eax, 1
add ebx, eax
jmp 0x517744
mov ecx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x14c]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x34], ecx
jmp 0x51773d
call fcn.00514ff0
mov byte [esi + 7], al
call fcn.00515010
cmp ax, 0xffff
je 0x517802
movsx eax, ax
push 0
push eax
lea ebx, [esi + 0x68]
push 1
push 0
push ebx
push 2
push 0
mov dword [ebp - 0x154], eax
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov dword [ebp - 0xe8], 1
xor edi, edi
cmp edi, dword [ebp - 0x154]
jg 0x517802
call fcn.00514ff0
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2], al
call fcn.00514ff0
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2 + 1], al
mov eax, dword [ebp - 0xe8]
add edi, eax
jmp 0x5177cb
call fcn.00514ff0
test al, al
mov byte [esi + 0x74], al
jbe 0x5178b1
and eax, 0xff
push 1
push eax
lea ebx, [esi + 0x70]
push 1
push 0x41e580
push ebx
push 8
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor edx, edx
mov dl, byte [esi + 0x74]
mov edi, 1
mov dword [ebp - 0xf4], edx
cmp edi, dword [ebp - 0xf4]
jg 0x5178b1
call fcn.00515010
mov ecx, dword [ebx]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov word [ecx + edx*8 + 4], ax
mov eax, dword [ebx]
mov edx, edi
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
lea ecx, [eax + edx*8]
mov dword [ebp - 0x158], ecx
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [ebp - 0x158]
mov edx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call fcn.00514ff0
mov edx, dword [ebp - 0x158]
mov byte [edx + 6], al
mov eax, 1
add edi, eax
jmp 0x517842
call fcn.00514ff0
mov byte [esi + 6], al
call fcn.00514ff0
cmp al, 0xff
mov byte [ebp - 0x38], al
jae 0x517bc3
mov eax, dword [ebp - 0x38]
push 0
and eax, 0xff
lea ebx, [esi + 0x6c]
push eax
push 1
push 0x41f354
push ebx
push 0xc
push 0
mov dword [ebp - 0x14c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor edi, edi
cmp edi, dword [ebp - 0x14c]
jg 0x517bc3
mov esi, dword [ebx]
call fcn.00515010
mov edx, dword [esi + 0x14]
mov ecx, edi
sub ecx, edx
mov edx, dword [esi + 0xc]
lea ecx, [ecx + ecx*2]
mov word [edx + ecx*4], ax
mov esi, dword [ebx]
call fcn.00514ff0
mov edx, dword [esi + 0x14]
mov ecx, edi
sub ecx, edx
mov edx, dword [esi + 0xc]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4 + 8], al
mov esi, dword [ebx]
call fcn.00515010
mov edx, dword [esi + 0x14]
mov ecx, edi
sub ecx, edx
mov edx, dword [esi + 0xc]
lea ecx, [ecx + ecx*2]
mov word [edx + ecx*4 + 2], ax
call fcn.00514ff0
test al, al
mov byte [ebp - 0x20], al
jbe 0x517bb4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx]
and eax, 0xff
push 1
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x15c], eax
push eax
mov eax, edi
push 1
sub eax, edx
push 0x41f520
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4 + 4]
push edx
push 0xc
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov esi, 1
cmp esi, dword [ebp - 0x15c]
jg 0x517bb4
mov ecx, dword [ebx]
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x160], edx
call fcn.00514ff0
mov edx, dword [ebp - 0x160]
mov ecx, esi
sub ecx, dword [edx + 0x14]
mov edx, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4], al
mov ecx, dword [ebx]
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x160], edx
call fcn.00515010
mov edx, dword [ebp - 0x160]
mov ecx, esi
sub ecx, dword [edx + 0x14]
mov edx, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
mov word [edx + ecx*4 + 2], ax
call fcn.00514ff0
cmp al, 0xff
mov byte [ebp - 0x1c], al
jae 0x517ae8
mov ecx, dword [ebx]
mov eax, edi
push 0
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
mov edx, dword [ebp - 0x1c]
and edx, 0xff
lea eax, [eax + eax*2]
push edx
push 1
push 8
lea eax, [ecx + eax*4 + 4]
mov dword [ebp - 0x164], eax
mov ecx, dword [eax]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4 + 4]
push edx
push 4
push 0x180
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
movzx ax, byte [ebp - 0x1c]
add esp, 0x1c
mov word [ebp - 0x8c], ax
mov dword [ebp - 0x14], 0
mov cx, word [ebp - 0x8c]
cmp word [ebp - 0x14], cx
jg 0x517ae8
mov edx, dword [ebp - 0x164]
mov eax, esi
mov ecx, dword [edx]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0x168], edx
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
movsx ecx, word [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp - 0x168]
sub ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea ecx, [eax + ecx*4]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp - 0x14]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x517a79
call fcn.00514ff0
cmp al, 0xff
mov byte [ebp - 0x1c], al
jae 0x517ba8
mov ecx, dword [ebx]
mov eax, edi
push 0
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*4 + 4]
mov edx, dword [ebp - 0x1c]
and edx, 0xff
mov eax, esi
push edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
push 1
push 0x11
lea eax, [eax + eax*2]
lea edx, [ecx + eax*4 + 8]
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
movzx ax, byte [ebp - 0x1c]
add esp, 0x1c
mov word [ebp - 0x94], ax
mov dword [ebp - 0x14], 0
mov cx, word [ebp - 0x94]
cmp word [ebp - 0x14], cx
jg 0x517ba8
mov ecx, dword [ebx]
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*4 + 4]
mov eax, esi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*4 + 8]
mov dword [ebp - 0x16c], ecx
call fcn.00514ff0
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 0x14]
movsx ecx, word [ebp - 0x14]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x14]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x517b4e
mov eax, 1
add esi, eax
jmp 0x517997
mov esi, dword [ebp - 0x80]
mov eax, 1
add edi, eax
jmp 0x5178f4
call fcn.00514ff0
test al, al
mov byte [esi + 0x7c], al
jbe 0x517eb7
mov esi, dword [ebp - 0x80]
and eax, 0xff
push 1
push eax
lea edi, [esi + 0x78]
push 1
push 0x41f540
push edi
push 0x24
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor edx, edx
mov dl, byte [esi + 0x7c]
mov esi, 1
mov dword [ebp - 0x10c], edx
cmp esi, dword [ebp - 0x10c]
jg 0x517eb7
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4], al
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4 + 1], al
mov ebx, dword [edi]
call fcn.005150c0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov dword [edx + ecx*4 + 0xc], eax
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4 + 0x14], al
mov ebx, dword [edi]
call fcn.00515010
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov word [edx + ecx*4 + 0x12], ax
mov ebx, dword [edi]
call fcn.00515010
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov word [edx + ecx*4 + 0x10], ax
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4 + 0x1c], al
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4 + 2], al
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4 + 3], al
mov ebx, dword [edi]
call fcn.00514ff0
mov edx, dword [ebx + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [ebx + 0xc]
lea ecx, [ecx + ecx*8]
mov byte [edx + ecx*4 + 4], al
mov ecx, dword [edi]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, esi
sub eax, edx
lea eax, [eax + eax*8]
lea ebx, [ecx + eax*4]
call fcn.00515250
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebx + 8]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov al, byte [ebx + 0x1c]
test al, al
jbe 0x517daf
and eax, 0xff
push 1
push eax
push 1
lea edx, [ebx + 0x20]
push 0x11
push edx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor eax, eax
mov al, byte [ebx + 0x1c]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x34]
cmp eax, ecx
jg 0x517daf
mov ecx, dword [edi]
mov eax, esi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*8]
mov eax, dword [ecx + 0xc]
mov ebx, dword [eax + edx*4 + 0x20]
call fcn.00514ff0
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
sub edx, ecx
mov ecx, dword [ebp - 0x34]
mov byte [edx + ecx], al
mov eax, 1
add ecx, eax
mov dword [ebp - 0x34], ecx
jmp 0x517d72
call fcn.00514ff0
test al, al
mov byte [ebp - 0x38], al
jbe 0x517eab
mov eax, dword [ebp - 0x38]
mov ecx, dword [edi]
and eax, 0xff
push 1
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov dword [ebp - 0x14c], eax
push eax
mov eax, esi
push 1
sub eax, edx
push 0
lea eax, [eax + eax*8]
lea edx, [ecx + eax*4 + 0x18]
push edx
push 0xc
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
mov ebx, 1
cmp ebx, dword [ebp - 0x14c]
jg 0x517eab
mov ecx, dword [edi]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*8]
mov edx, dword [ecx + eax*4 + 0x18]
mov dword [ebp - 0x170], edx
call fcn.00515010
mov edx, dword [ebp - 0x170]
mov ecx, ebx
sub ecx, dword [edx + 0x14]
mov edx, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
mov word [edx + ecx*4 + 8], ax
mov ecx, dword [edi]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*8]
mov edx, dword [ecx + eax*4 + 0x18]
mov dword [ebp - 0x170], edx
call fcn.005150c0
mov edx, dword [ebp - 0x170]
mov ecx, ebx
sub ecx, dword [edx + 0x14]
mov edx, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
mov dword [edx + ecx*4 + 4], eax
mov ecx, dword [edi]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*8]
mov edx, dword [ecx + eax*4 + 0x18]
mov dword [ebp - 0x170], edx
call fcn.00514ff0
mov edx, dword [ebp - 0x170]
mov ecx, ebx
sub ecx, dword [edx + 0x14]
mov edx, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4], al
mov eax, 1
add ebx, eax
jmp 0x517dfa
mov eax, 1
add esi, eax
jmp 0x517c06
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea eax, [ebp - 0x6c]
push eax
call esi
lea ecx, [ebp - 0x70]
push ecx
call esi
mov ecx, dword [ebp - 0x28]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x28], ecx
mov esi, ecx
jmp 0x5173db
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [ebp - 0x18]
mov eax, 1
add ecx, eax
xor esi, esi
mov dword [ebp - 0x18], ecx
mov edi, ecx
jmp 0x51702f
call fcn.00515010
cmp ax, si
mov word [0x539864], ax
jle 0x51820c
movsx eax, ax
push 1
push eax
push 1
push 0x41f9d4
push 0x539860
push 0x28
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
movsx ecx, word [0x539864]
mov edi, 1
add esp, 0x1c
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0x124]
jg 0x51820c
mov edx, dword [0x539860]
lea eax, [ebp - 0x74]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x74]
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0xc]
lea esi, [eax + edx*8]
call fcn.00514ff0
test al, al
mov byte [esi + 0xc], al
jbe 0x517fe7
and eax, 0xff
push 1
push eax
lea edi, [esi + 8]
push 1
push 0
push edi
push 2
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor ecx, ecx
mov cl, byte [esi + 0xc]
mov ebx, 1
mov dword [ebp - 0x12c], ecx
cmp ebx, dword [ebp - 0x12c]
jg 0x517fe7
call fcn.00514ff0
mov ecx, dword [edi]
mov edx, ebx
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2], al
call fcn.00514ff0
mov ecx, dword [edi]
mov edx, ebx
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2 + 1], al
mov eax, 1
add ebx, eax
jmp 0x517fb1
call fcn.00514ff0
test al, al
mov byte [esi + 4], al
jbe 0x518057
and eax, 0xff
push 1
push eax
push 1
push 0
push esi
push 2
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor edx, edx
mov dl, byte [esi + 4]
mov ebx, 1
mov dword [ebp - 0x134], edx
cmp ebx, dword [ebp - 0x134]
jg 0x518057
mov edi, dword [esi]
call fcn.00514ff0
mov edx, dword [edi + 0x14]
mov ecx, ebx
sub ecx, edx
mov edx, dword [edi + 0xc]
mov byte [edx + ecx*2], al
mov edi, dword [esi]
call fcn.00514ff0
mov edx, dword [edi + 0x14]
mov ecx, ebx
sub ecx, edx
mov edx, dword [edi + 0xc]
mov byte [edx + ecx*2 + 1], al
mov eax, 1
add ebx, eax
jmp 0x51801d
call fcn.00514ff0
mov byte [esi + 0x10], al
call fcn.00515010
mov word [esi + 0x12], ax
call fcn.00515010
mov word [esi + 0x1a], ax
call fcn.00515010
mov word [esi + 0x1c], ax
call fcn.00515010
mov word [esi + 0x14], ax
call fcn.00515010
mov word [esi + 0x16], ax
call fcn.00515010
mov word [esi + 0x18], ax
call fcn.00514ff0
test al, al
mov byte [esi + 0x24], al
jbe 0x5181ec
and eax, 0xff
push 1
push eax
lea ebx, [esi + 0x20]
push 1
push 0x41f9ac
push ebx
push 0xc
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor eax, eax
mov al, byte [esi + 0x24]
mov esi, 1
mov dword [ebp - 0x13c], eax
cmp esi, dword [ebp - 0x13c]
jg 0x5181ec
mov edi, dword [ebx]
call fcn.00515010
mov edx, dword [edi + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [edi + 0xc]
lea ecx, [ecx + ecx*2]
mov word [edx + ecx*4], ax
mov edi, dword [ebx]
call fcn.00514ff0
mov edx, dword [edi + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [edi + 0xc]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4 + 2], al
mov edi, dword [ebx]
call fcn.00514ff0
mov edx, dword [edi + 0x14]
mov ecx, esi
sub ecx, edx
mov edx, dword [edi + 0xc]
lea ecx, [ecx + ecx*2]
mov byte [edx + ecx*4 + 8], al
mov ecx, dword [ebx]
mov eax, esi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
lea edi, [ecx + eax*4]
mov al, byte [ecx + eax*4 + 8]
test al, al
jbe 0x5181e0
and eax, 0xff
push 1
push eax
push 1
lea edx, [edi + 4]
push 0
push edx
push 2
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
add esp, 0x1c
xor eax, eax
mov al, byte [edi + 8]
mov edi, 1
mov dword [ebp - 0x144], eax
cmp edi, dword [ebp - 0x144]
jg 0x5181e0
mov ecx, dword [ebx]
mov eax, esi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*4 + 4]
mov dword [ebp - 0x174], ecx
call fcn.00514ff0
mov ecx, dword [ebp - 0x174]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2], al
mov ecx, dword [ebx]
mov eax, esi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + edx*4 + 4]
mov dword [ebp - 0x174], ecx
call fcn.00514ff0
mov ecx, dword [ebp - 0x174]
mov edx, edi
sub edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov byte [ecx + edx*2 + 1], al
mov eax, 1
add edi, eax
jmp 0x518174
mov eax, 1
add esi, eax
jmp 0x5180d5
lea edx, [ebp - 0x74]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [ebp - 0x18]
mov eax, 1
add ecx, eax
xor esi, esi
mov dword [ebp - 0x18], ecx
mov edi, ecx
jmp 0x517f4a
push 0x539a44
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
call fcn.004f3de0
call fcn.004f7340
call fcn.00475240
wait
push 0x518278
jmp 0x518250
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea eax, [ebp - 0x68]
push eax
call esi
lea ecx, [ebp - 0x6c]
push ecx
call esi
lea edx, [ebp - 0x70]
push edx
call esi
lea eax, [ebp - 0x74]
push eax
call esi
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret