Function at 0x439970
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x402ae6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4024a8
mov eax, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov edx, dword [eax]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaInStr]
push 1
push ecx
push 0x40cddc
push esi
call ebx
xor edx, edx
push 1
test eax, eax
mov eax, dword [ebp - 0x28]
push eax
push 0x40c584
setle dl
push esi
mov dword [ebp - 0x7c], edx
call ebx
mov ecx, dword [ebp - 0x7c]
neg eax
sbb eax, eax
neg eax
or ecx, eax
jne 0x439a2a
mov edx, dword [ebp - 0x28]
mov edi, dword [sym.imp.MSVBVM60.DLL_rtcReplace]
push esi
push 0xffffffffffffffff
push 1
push 0x40c584
push 0x40cddc
push edx
call edi
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call esi
jmp 0x439a36
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edi, dword [sym.imp.MSVBVM60.DLL_rtcReplace]
mov eax, dword [ebp - 0x28]
push 1
push eax
push 0x40c584
push 0
call ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea edx, [ebp - 0x40]
add eax, 1
lea ecx, [ebp - 0x28]
push edx
mov dword [ebp - 0x58], ecx
jo 0x439c1d
push eax
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x50]
push eax
push ecx
mov dword [ebp - 0x38], 0x32
mov dword [ebp - 0x40], 2
mov dword [ebp - 0x60], 0x4008
call ebx
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 0
push 0xffffffffffffffff
push 1
push 0x40d0d8
push 0x40d0cc
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x1c]
push 0
push 0xffffffffffffffff
push 1
push 0x40bd90
push 0x40c57c
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
mov ecx, dword [ebp - 0x1c]
push 0x40bd90
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x30]
call esi
push eax
push 0x40bd90
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [ebp - 0x1c]
push 0
push 0xffffffffffffffff
push 1
push 0x40c314
push 0x40d0e0
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
mov eax, dword [ebp - 0x1c]
push 0
push 0xffffffffffffffff
push 1
push 0x40cde4
push 0x40d0d8
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
mov ecx, dword [ebp - 0x1c]
push 0
push 0xffffffffffffffff
push 1
push 0x40c314
push 0x40bd90
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x1c]
call esi
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x58], eax
mov eax, dword [edx]
push ecx
lea ecx, [ebp - 0x60]
push eax
lea edx, [ebp - 0x40]
push ecx
push edx
mov dword [ebp - 0x70], 0x4003
mov dword [ebp - 0x60], 0x4008
call ebx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x439c07
jmp 0x439bec
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x1c]
call esi
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x28]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop