Function at 0x52de40
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, 0x38
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404f00
mov eax, dword [0x53ab0c]
lea ecx, [ebp - 0x34]
xor edi, edi
push eax
push ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
sub esi, ecx
lea esi, [esi + esi*2]
shl esi, 5
add esi, edx
mov eax, dword [esi + 0x50]
cmp eax, edi
jle 0x52deed
lea ebx, [ebp - 0x2c]
mov ecx, dword [0x538c1c]
push ebx
push 0x3e99999a
push eax
mov eax, dword [esi + 0x4c]
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x48]
push 0x2eb
push 0x8d9
push eax
mov eax, dword [esi + 0x44]
push eax
push 5
push ecx
call dword [edx + 0x78]
cmp eax, edi
fnclex
jge 0x52deed
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
add eax, 0x17
push edx
push eax
push esi
push 0xf
call fcn.00439580
mov edx, 0x4286ec
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edi, dword [esi + 0x38]
mov ebx, dword [esi + 0x3c]
lea edx, [ebp - 0x28]
lea ecx, [edi + 0x16]
lea eax, [ebx + 0x47]
push ecx
push eax
push edx
push 0xf
call fcn.00439580
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [edi + 0x25]
lea eax, [ebx + 0x47]
push ecx
lea edx, [ebp - 0x28]
push eax
push edx
push 0xf
call fcn.00439580
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
add edi, 0xf
add ebx, 0x16
push edi
push ebx
push esi
call fcn.0052dd70
cmp word [esi + 0x58], 0
mov edx, 0x42c748
lea ecx, [ebp - 0x28]
je 0x52dfb8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
push 0
push 0x2c
lea eax, [ebx + 0x27]
lea ecx, [edi + 0x62]
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.0043d2a0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x30], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x30], 0
je 0x52dffe
mov eax, dword [ebp + 8]
jmp 0x52dff9
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
push 0
push 0
push 0
lea ecx, [ebx + 0x27]
push 0x2c
lea edx, [edi + 0x62]
push ecx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov word [ebp - 0x30], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x30], 0
je 0x52dffe
mov eax, dword [ebp + 8]
mov dword [0x53ab38], eax
mov dword [0x53ab3c], eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x538c1c]
push edx
push 0x3f800000
mov ecx, dword [eax]
push 0xf
push 0x14
push 0xda
lea edx, [ebx + 0x16]
push 0x3fd
push edx
lea edx, [edi + 0x73]
push edx
push 5
push eax
call dword [ecx + 0x78]
test eax, eax
fnclex
jge 0x52e045
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0xa3
add ebx, 0xf
cmp word [esi + 0x40], 0
mov dword [ebp - 0x1c], ebx
je 0x52e080
mov edx, 0x42c760
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebx - 9]
lea eax, [edi + 1]
push edx
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.004394a0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [esi + 0x14], 0x4e20
jne 0x52e096
push ebx
lea edx, [esi + 0x10]
push edi
push edx
call fcn.0052dd70
add edi, 0x2c
cmp word [esi + 0x24], 0x4e21
jne 0x52e0ac
push ebx
lea eax, [esi + 0x20]
push edi
push eax
call fcn.0052dd70
add edi, 0x2c
mov ax, word [esi + 0x34]
cmp ax, 1
mov dword [ebp - 0x48], eax
jne 0x52e120
cmp word [esi + 0x40], 0
jne 0x52e0e8
mov edx, 0x42c760
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea ecx, [ebx - 9]
lea edx, [edi + 1]
push ecx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.004394a0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x24]
push ebx
push edi
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0xc]
shl ecx, 4
sub edx, ecx
add edx, 0x10
push edx
call fcn.0052dd70
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, dword [ebp - 0x48]
cmp ax, 1
jle 0x52e1aa
cmp word [esi + 0x40], 0
je 0x52e130
add edi, 6
mov edx, 0x42c774
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
add ebx, 0xfffffff7
lea ecx, [edi + 1]
push ebx
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.004394a0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x48]
mov dword [ebp - 0x40], eax
mov ebx, 1
cmp ebx, dword [ebp - 0x40]
jg 0x52e1aa
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
push eax
mov eax, dword [ebp - 0x24]
push edi
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 4
add ecx, edx
push ecx
call fcn.0052dd70
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 1
add edi, 0x2c
add ebx, eax
jmp 0x52e164
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
wait
push 0x52e1db
jmp 0x52e1d0
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
ret