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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4035b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
push edi
mov dword [ebp - 8], esp
push 0x28
pop ecx
xor eax, eax
lea edi, [ebp - 0xb4]
xor ebx, ebx
rep stosd dword es:[edi], eax
push 0x41c828
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 4], 0x402bc0
mov dword [ebp - 0xd4], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe8], ebx
call sub.MSVBVM50.DLL___vbaAryConstruct
mov eax, dword [ebp - 0xc4]
mov dword [eax], 0x19c
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax]
imul ecx, ecx, 0x40
jo 0x45df5f
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push eax
call fcn.004196d8
mov dword [ebp - 0xe8], eax
call sub.MSVBVM50.DLL___vbaSetSystemError
mov esi, dword [ebp - 0xe8]
cmp esi, ebx
je 0x45ddff
mov edi, pe_nt_image_headers32
push edi
call sub.MSVBVM50.DLL_rtcSpaceBstr
mov edx, eax
lea ecx, [ebp - 0xd4]
call sub.MSVBVM50.DLL___vbaStrMove
push edi
push dword [ebp - 0xd4]
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM50.DLL___vbaStrToAnsi
push eax
push esi
call fcn.00419694
call sub.MSVBVM50.DLL___vbaSetSystemError
push dword [ebp - 0xe4]
lea eax, [ebp - 0xd4]
push eax
call sub.MSVBVM50.DLL___vbaStrToUnicode
lea ecx, [ebp - 0xe4]
call sub.MSVBVM50.DLL___vbaFreeStr
push 0x45df50
jmp 0x45df2a
mov eax, dword [ebp - 0xdc]
push 1
pop ecx
cmp eax, ecx
jl 0x45ddf5
dec eax
jo 0x45df5f
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], ecx
mov edi, pe_nt_image_headers32
cmp ebx, dword [ebp - 0xf4]
jg 0x45ddf5
cmp ebx, 0x41
jb 0x45de36
call sub.MSVBVM50.DLL___vbaGenerateBoundsError
mov eax, dword [ebp - 0xc4]
mov esi, ebx
imul esi, esi, 0x19c
push dword [esi + eax + 4]
call fcn.00419714
call sub.MSVBVM50.DLL___vbaSetSystemError
or dword [ebp - 0xe0], 0xffffffff
cmp ebx, 0x41
mov dword [ebp - 0xb4], 0xa0
jb 0x45de6d
call sub.MSVBVM50.DLL___vbaGenerateBoundsError
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0xc4]
push dword [esi + eax + 4]
call fcn.0041975c
mov dword [ebp - 0xe8], eax
call sub.MSVBVM50.DLL___vbaSetSystemError
mov eax, dword [ebp - 0xe8]
test eax, eax
mov dword [ebp - 0xb8], eax
jne 0x45deb4
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0xe0], eax
je 0x45de59
mov dword [ebp - 0xe0], eax
jmp 0x45de59
cmp eax, 6
je 0x45df0d
push edi
call sub.MSVBVM50.DLL_rtcSpaceBstr
mov edx, eax
lea ecx, [ebp - 0xd4]
call sub.MSVBVM50.DLL___vbaStrMove
push edi
push dword [ebp - 0xd4]
lea eax, [ebp - 0xe4]
push eax
call sub.MSVBVM50.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0xb8]
call fcn.00419694
call sub.MSVBVM50.DLL___vbaSetSystemError
push dword [ebp - 0xe4]
lea eax, [ebp - 0xd4]
push eax
call sub.MSVBVM50.DLL___vbaStrToUnicode
lea ecx, [ebp - 0xe4]
call sub.MSVBVM50.DLL___vbaFreeStr
mov eax, dword [ebp - 0xf0]
add eax, ebx
jo 0x45df5f
mov ebx, eax
jmp 0x45de24
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xe8]
push eax
push 0
call sub.MSVBVM50.DLL___vbaAryDestruct
lea ecx, [ebp - 0xd4]
jmp sub.MSVBVM50.DLL___vbaFreeStr
call sub.MSVBVM50.DLL___vbaErrorOverflow