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

Disassembly:
push esi
call fcn.00515010
mov esi, dword [esp + 8]
test ax, ax
mov word [esi + 0x38], ax
je 0x516e1e
push ebx
push ebp
push edi
call fcn.00514ff0
mov byte [esi + 0x5c], al
call fcn.00514ff0
mov byte [esi + 0x5d], al
call fcn.00514ff0
mov byte [esi + 0x5e], al
call fcn.00514ff0
mov byte [esi + 0x5f], al
call fcn.00514ff0
mov byte [esi + 0x60], al
call fcn.00514ff0
mov byte [esi + 0x61], al
call fcn.00514ff0
mov byte [esi + 0x62], al
call fcn.00514ff0
mov byte [esi + 0x63], al
call fcn.00514ff0
mov byte [esi + 0x64], al
call fcn.00514ff0
mov byte [esi + 0x65], al
call fcn.00514ff0
mov byte [esi + 0x66], 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.00515010
mov word [esi + 0x40], ax
call fcn.00515010
mov word [esi + 0x42], ax
call fcn.00515010
mov word [esi + 0x44], ax
call fcn.00515010
mov word [esi + 0x46], ax
call fcn.00515010
mov word [esi + 0x48], ax
call fcn.00515010
mov word [esi + 0x4a], ax
call fcn.00515010
mov word [esi + 0x4c], ax
call fcn.00515010
mov word [esi + 0x4e], ax
call fcn.00515010
mov word [esi + 0x50], ax
call fcn.00515010
mov word [esi + 0x52], ax
call fcn.00515010
mov word [esi + 0x54], ax
call fcn.00515010
mov word [esi + 0x56], ax
call fcn.00515010
mov word [esi + 0x58], ax
call fcn.00515010
mov word [esi + 0x5a], ax
call fcn.005150c0
mov dword [esi + 0x2c], eax
call fcn.005150c0
mov dword [esi + 0x30], eax
call fcn.005150c0
mov dword [esi + 0x34], eax
call fcn.00515170
fstp dword [esi + 0x28]
call fcn.00515220
mov word [esi + 0x10], ax
call fcn.00515220
mov word [esi + 0x12], ax
call fcn.00515220
mov word [esi + 0x14], ax
call fcn.00515220
mov word [esi + 0x16], ax
call fcn.00515220
mov word [esi + 0x18], ax
call fcn.00515220
mov word [esi + 0x1a], ax
call fcn.00515010
mov word [esi + 0x1c], ax
call fcn.00515010
mov word [esi + 0x1e], ax
call fcn.00515010
mov word [esi + 0x20], ax
call fcn.00515010
mov word [esi + 0x22], ax
call fcn.00515010
mov word [esi + 0x24], ax
call fcn.00514ff0
mov bl, al
mov byte [esi + 4], bl
call fcn.00514ff0
test bl, bl
mov byte [esi + 0xc], al
jbe 0x516ce8
and ebx, 0xff
push 1
push ebx
push 1
push 0x11
push esi
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
xor ebx, ebx
mov edi, 1
mov bl, byte [esi + 4]
add esp, 0x1c
cmp ebx, edi
jl 0x516ce8
mov ebp, dword [esi]
call fcn.00514ff0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
sub ecx, edx
inc edi
cmp edi, ebx
mov byte [ecx + edi - 1], al
jle 0x516cd0
mov al, byte [esi + 0xc]
test al, al
jbe 0x516d35
and eax, 0xff
push 1
push eax
lea ebx, [esi + 8]
push 1
push 0x11
push ebx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
xor edx, edx
mov edi, 1
mov dl, byte [esi + 0xc]
add esp, 0x1c
mov ebp, edx
cmp ebp, edi
jl 0x516d35
call fcn.00514ff0
mov ecx, dword [ebx]
mov edx, dword [ecx + 0xc]
sub edx, dword [ecx + 0x14]
inc edi
cmp edi, ebp
mov byte [edx + edi - 1], al
jle 0x516d1f
mov al, byte [esi + 0x5c]
cmp al, 1
jb 0x516d40
cmp al, 0xb
jbe 0x516d48
cmp al, 0xd
jb 0x516d8d
cmp al, 0x10
ja 0x516d8d
cmp al, 1
jbe 0x516d73
mov al, byte [esi + 0x60]
test al, al
jbe 0x516d5f
movzx ax, al
mov word [esi + 0x68], ax
mov byte [esi + 0x60], 0
mov al, byte [esi + 0x62]
test al, al
jbe 0x516d73
xor cx, cx
mov byte [esi + 0x62], 0
mov cl, al
mov word [esi + 0x6e], cx
mov al, byte [esi + 0x61]
test al, al
je 0x516e0a
xor dx, dx
mov byte [esi + 0x61], 0
mov dl, al
mov word [esi + 0x6c], dx
jmp 0x516e0a
cmp al, 0xc
jne 0x516dbd
mov al, byte [esi + 0x61]
test al, al
jbe 0x516d9f
mov byte [esi + 0x71], al
mov byte [esi + 0x61], 0
mov al, byte [esi + 0x62]
test al, al
jbe 0x516dad
mov byte [esi + 0x72], al
mov byte [esi + 0x62], 0
mov al, byte [esi + 0x63]
test al, al
jbe 0x516e0a
mov byte [esi + 0x73], al
mov byte [esi + 0x63], 0
jmp 0x516e0a
cmp al, 0x11
jne 0x516e0a
mov ax, word [esi + 0x54]
xor ecx, ecx
cmp ax, cx
jle 0x516dd4
mov word [esi + 0x74], ax
mov word [esi + 0x54], cx
mov ax, word [esi + 0x4e]
cmp ax, cx
jle 0x516de5
mov word [esi + 0x76], ax
mov word [esi + 0x4e], cx
mov al, byte [esi + 0x60]
lea edi, [esi + 0x60]
test al, al
ja 0x516df6
mov al, byte [esi + 0x62]
test al, al
jbe 0x516e0a
lea ebx, [esi + 0x62]
push ebx
push edi
call fcn.00515a90
mov word [esi + 0x78], ax
mov byte [edi], 0
mov byte [ebx], 0
mov al, byte [esi + 0x5c]
pop edi
pop ebp
cmp al, 1
pop ebx
jbe 0x516e1e
mov al, byte [esi + 0x66]
mov byte [esi + 0x66], 0
mov byte [esi + 0x70], al
pop esi
ret 4