Function at 0x516480
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, 0x24
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404930
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov cl, byte [esi + 4]
lea edi, [esi + 4]
cmp cl, al
jne 0x5164d1
lea eax, [ebp - 0x18]
push eax
call fcn.005155f0
push 0x5167dc
jmp 0x5167db
lea ecx, [esi + 0x38]
push ecx
call fcn.005155f0
lea edx, [esi + 0x5c]
push edx
call fcn.00515490
lea eax, [esi + 0x5d]
push eax
call fcn.00515490
lea ecx, [esi + 0x5e]
push ecx
call fcn.00515490
lea edx, [esi + 0x5f]
push edx
call fcn.00515490
lea eax, [esi + 0x60]
push eax
call fcn.00515490
lea ecx, [esi + 0x61]
push ecx
call fcn.00515490
lea edx, [esi + 0x62]
push edx
call fcn.00515490
lea eax, [esi + 0x63]
push eax
call fcn.00515490
lea ecx, [esi + 0x64]
push ecx
call fcn.00515490
lea edx, [esi + 0x65]
push edx
call fcn.00515490
lea eax, [esi + 0x66]
push eax
call fcn.00515490
lea ecx, [esi + 0x68]
push ecx
call fcn.005155f0
lea edx, [esi + 0x6a]
push edx
call fcn.005155f0
lea eax, [esi + 0x6c]
push eax
call fcn.005155f0
lea ecx, [esi + 0x6e]
push ecx
call fcn.005155f0
lea edx, [esi + 0x70]
push edx
call fcn.00515490
lea eax, [esi + 0x71]
push eax
call fcn.00515490
lea ecx, [esi + 0x72]
push ecx
call fcn.00515490
lea edx, [esi + 0x73]
push edx
call fcn.00515490
lea eax, [esi + 0x74]
push eax
call fcn.005155f0
lea ecx, [esi + 0x76]
push ecx
call fcn.005155f0
lea edx, [esi + 0x78]
push edx
call fcn.005155f0
lea eax, [esi + 0x7c]
push eax
call fcn.005156a0
lea ecx, [esi + 0x80]
push ecx
call fcn.00515490
lea edx, [esi + 0x82]
push edx
call fcn.005155f0
lea eax, [esi + 0x84]
push eax
call fcn.005156a0
lea ecx, [esi + 0x88]
push ecx
call fcn.005155f0
lea edx, [esi + 0x8a]
push edx
call fcn.005155f0
lea eax, [esi + 0x8c]
push eax
call fcn.005155f0
lea ecx, [esi + 0x8e]
push ecx
call fcn.005155f0
lea edx, [esi + 0x90]
push edx
call fcn.005155f0
lea eax, [esi + 0x92]
push eax
call fcn.005155f0
lea ecx, [esi + 0x3a]
push ecx
call fcn.005155f0
lea edx, [esi + 0x3c]
push edx
call fcn.005155f0
lea eax, [esi + 0x3e]
push eax
call fcn.005155f0
lea ecx, [esi + 0x40]
push ecx
call fcn.005155f0
lea edx, [esi + 0x42]
push edx
call fcn.005155f0
lea eax, [esi + 0x44]
push eax
call fcn.005155f0
lea ecx, [esi + 0x46]
push ecx
call fcn.005155f0
lea edx, [esi + 0x48]
push edx
call fcn.005155f0
lea eax, [esi + 0x4a]
push eax
call fcn.005155f0
lea ecx, [esi + 0x4c]
push ecx
call fcn.005155f0
lea edx, [esi + 0x4e]
push edx
call fcn.005155f0
lea eax, [esi + 0x50]
push eax
call fcn.005155f0
lea ecx, [esi + 0x52]
push ecx
call fcn.005155f0
lea edx, [esi + 0x54]
push edx
call fcn.005155f0
lea eax, [esi + 0x56]
push eax
call fcn.005155f0
lea ecx, [esi + 0x58]
push ecx
call fcn.005155f0
lea edx, [esi + 0x5a]
push edx
call fcn.005155f0
lea eax, [esi + 0x2c]
push eax
call fcn.005156a0
lea ecx, [esi + 0x30]
push ecx
call fcn.005156a0
lea edx, [esi + 0x34]
push edx
call fcn.005156a0
lea eax, [esi + 0x28]
push eax
call fcn.00515750
lea ecx, [esi + 0x10]
push ecx
call fcn.00515800
lea edx, [esi + 0x12]
push edx
call fcn.00515800
lea eax, [esi + 0x14]
push eax
call fcn.00515800
lea ecx, [esi + 0x16]
push ecx
call fcn.00515800
lea edx, [esi + 0x18]
push edx
call fcn.00515800
lea eax, [esi + 0x1a]
push eax
call fcn.00515800
lea ecx, [esi + 0x1c]
push ecx
call fcn.005155f0
lea edx, [esi + 0x1e]
push edx
call fcn.005155f0
lea eax, [esi + 0x20]
push eax
call fcn.005155f0
lea ecx, [esi + 0x22]
push ecx
call fcn.005155f0
lea edx, [esi + 0x24]
push edx
call fcn.005155f0
push edi
call fcn.00515490
lea eax, [esi + 0xc]
push eax
call fcn.00515490
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
xor ecx, ecx
mov cl, byte [edi]
mov edi, 1
mov dword [ebp - 0x28], ecx
cmp edi, dword [ebp - 0x28]
jg 0x51678a
mov edx, dword [esi]
lea eax, [ebp - 0x1c]
push edx
push eax
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
sub ecx, edx
add ecx, edi
push ecx
call fcn.00515490
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 1
add edi, eax
jmp 0x516756
xor eax, eax
mov edi, 1
mov al, byte [esi + 0xc]
mov dword [ebp - 0x30], eax
cmp edi, dword [ebp - 0x30]
jg 0x5164c7
mov ecx, dword [esi + 8]
lea edx, [ebp - 0x1c]
push ecx
push edx
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x14]
sub ecx, edx
add ecx, edi
push ecx
call fcn.00515490
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 1
add edi, eax
jmp 0x516797
ret