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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x406bc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x404bb0
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0xcc], esi
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0047c820
mov edx, eax
lea ecx, [ebp - 0x3c]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call edi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], 8
push esi
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x34]
call edi
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edx, dword [ebp - 0x34]
push edx
push 0x40d7b4
call dword [sym.imp.MSVBVM60.DLL___vbaStrTextCmp]
test eax, eax
je 0x504d52
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0047c820
mov edx, eax
lea ecx, [ebp - 0x3c]
call edi
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcFileDateTime]
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcGetDateVar]
push 1
push 1
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x50]
push eax
push 0x40f6e8
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcDateDiff]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x90], 0x8003
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTextTstGe]
mov si, ax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
push 3
call ebx
add esp, 0x10
test si, si
je 0x504d21
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x504caf
lea eax, [ebp - 0x38]
push eax
push 0x419f8c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov eax, dword [ebp - 0x38]
mov esi, eax
mov ecx, 0x80020004
mov dword [ebp - 0x68], ecx
mov edx, 0xa
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x90], 0x4008
mov edx, dword [eax]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push eax
call dword [edx + 0x20]
fnclex
test eax, eax
jge 0x504d0e
push 0x20
push 0x419f7c
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 3
call ebx
add esp, 0x10
mov dword [ebp - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
push 0
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcDir]
mov edx, eax
lea ecx, [ebp - 0x34]
call edi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
xor esi, esi
jmp 0x504beb
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x504d68
lea eax, [ebp - 0x38]
push eax
push 0x419f8c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaForEachCollVar]
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcKillFiles]
test eax, eax
je 0x504e92
add esi, 1
jo 0x504f06
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrErrVarCopy]
mov edx, eax
lea ecx, [ebp - 0x3c]
call edi
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0047c820
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], 8
lea ecx, [ebp - 0x50]
push ecx
call ebx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaNextEachCollVar]
jmp 0x504d83
call dword [fcn.004010d4]
push 0x504ef3
jmp 0x504ecd
lea ecx, [ebp - 0xcc]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x38]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop