Function at 0x5409b0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401c56
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], 0x401908
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
push eax
mov eax, dword [0x54d040]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjIs]
test ax, ax
je 0x540a0a
call fcn.00540550
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov dword [ebp - 0x74], eax
mov eax, 1
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x74]
jg 0x540b66
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x34]
push edx
push eax
mov dword [ebp - 0x4c], ecx
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x44]
push eax
push ecx
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x54], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharVar]
lea edx, [ebp - 0x44]
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x18]
call esi
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 2
call ebx
mov eax, dword [0x54d040]
lea edx, [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x4c], edx
lea edx, [ebp - 0x68]
mov dword [ebp - 0x54], 0x4008
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x54]
push edx
push eax
call dword [ecx + 0x30]
test eax, eax
fnclex
jge 0x540ac1
mov ecx, dword [0x54d040]
push 0x30
push 0x4184c0
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp word [ebp - 0x68], 0
je 0x540b3d
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x5c], edx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x54d040]
push edx
lea edx, [ebp - 0x54]
mov dword [ebp - 0x64], 8
mov dword [ebp - 0x54], 0x4008
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
fnclex
jge 0x540b10
mov ecx, dword [0x54d040]
push 0x24
push 0x4184c0
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x44]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x34]
push edx
push eax
push 2
call ebx
add esp, 0xc
jmp 0x540b52
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x24]
call esi
mov ecx, dword [ebp - 0x20]
mov eax, 1
add eax, ecx
jo 0x540bc3
mov dword [ebp - 0x20], eax
jmp 0x540a33
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x540bad
jmp 0x540b9c
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x24]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0xc
push 0x401c56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401918
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, 1
mov dword [ebp - 4], ecx
and al, 0xfe
push eax
mov dword [ebp + 8], eax
mov edx, dword [eax]
call dword [edx + 4]
mov eax, dword [0x54d0dc]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [eax], 0x242424
mov ecx, dword [0x54d0dc]
mov eax, 0xff242424
mov edi, 0xffe6f0f9
mov dword [ecx + 4], 0x8c8c8c
mov edx, dword [0x54d0dc]
mov dword [edx + 8], eax
mov ecx, dword [0x54d0dc]
mov dword [ecx + 0xc], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x10], 0xff2f2f2f
mov ecx, dword [0x54d0dc]
mov dword [ecx + 0x14], 0xff414141
mov edx, dword [0x54d0dc]
mov ecx, 0xe0242424
mov dword [edx + 0x18], ecx
mov edx, dword [0x54d0dc]
mov dword [edx + 0x1c], ecx
mov ecx, dword [0x54d0dc]
mov dword [ecx + 0x20], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x24], eax
mov ecx, dword [0x54d0dc]
mov dword [ecx + 0x28], 0xff444444
mov edx, dword [0x54d0dc]
mov dword [edx + 0x2c], eax
mov eax, dword [0x54d0dc]
mov dword [eax + 0x30], 0xc89e6
mov ecx, dword [0x54d0dc]
mov eax, 0x88340044
mov dword [ecx + 0x34], 0xcfdee2
mov edx, dword [0x54d0dc]
mov dword [edx + 0x38], eax
mov ecx, dword [0x54d0dc]
mov dword [ecx + 0x3c], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x40], 0xffcfa273
mov ecx, dword [0x54d0dc]
mov dword [ecx + 0x44], 0xff906e49
mov edx, dword [0x54d0dc]
mov ecx, 0xffffff
mov dword [edx + 0x48], 0x66ffffff
mov edx, dword [0x54d0dc]
mov dword [edx + 0x4c], ecx
mov edx, dword [0x54d0dc]
mov dword [edx + 0x50], 0xf7f7f7
mov edx, dword [0x54d0dc]
mov dword [edx + 0x54], 0xd5ba9a
mov edx, dword [0x54d0dc]
mov dword [edx + 0x58], 0xffe0e0e0
mov edx, dword [0x54d0dc]
mov dword [edx + 0x5c], 0xfffefefe
mov edx, dword [0x54d0dc]
mov dword [edx + 0x60], 0xffffffff
mov edx, dword [0x54d0dc]
mov dword [edx + 0x64], 0xffd2e3f3
mov edx, dword [0x54d0dc]
mov dword [edx + 0x68], edi
mov edx, dword [0x54d0dc]
mov dword [edx + 0x6c], edi
mov ebx, dword [0x54d0dc]
mov edx, 0xfff7f7f7
mov dword [ebx + 0x70], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0x74], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0x78], edi
mov edi, dword [0x54d0dc]
mov dword [edi + 0x7c], edx
mov edx, dword [0x54d0dc]
mov edi, 0xff5a0404
mov dword [edx + 0x80], 0x8000000d
mov edx, dword [0x54d0dc]
mov dword [edx + 0x84], 0x808080
mov edx, dword [0x54d0dc]
mov dword [edx + 0x88], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x8c], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x90], 0xff1cc0f7
mov edx, dword [0x54d0dc]
mov dword [edx + 0x94], 0xff3879fe
mov edx, dword [0x54d0dc]
mov dword [edx + 0x98], 0x66000000
mov edx, dword [0x54d0dc]
mov dword [edx + 0x9c], ecx
mov edx, dword [0x54d0dc]
mov dword [edx + 0xa0], 0xd0d84
mov edx, dword [0x54d0dc]
mov dword [edx + 0xa4], 0x323fe6
mov edx, dword [0x54d0dc]
mov dword [edx + 0xa8], 0xff851919
mov edx, dword [0x54d0dc]
mov dword [edx + 0xac], 0xffd52929
mov edx, dword [0x54d0dc]
mov dword [edx + 0xb0], 0xff971616
mov edx, dword [0x54d0dc]
mov dword [edx + 0xb4], 0xff650505
mov edx, dword [0x54d0dc]
mov dword [edx + 0xb8], edi
mov edx, dword [0x54d0dc]
mov dword [edx + 0xbc], edi
mov ebx, dword [0x54d0dc]
mov edx, 0xff840d0d
mov dword [ebx + 0xc0], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0xc4], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0xc8], edi
mov edi, dword [0x54d0dc]
mov dword [edi + 0xcc], edx
mov edx, dword [0x54d0dc]
mov edi, 0x66ffffff
mov dword [edx + 0xd0], 0xc89e6
mov edx, dword [0x54d0dc]
mov dword [edx + 0xd4], 0xe0e0e0
mov edx, dword [0x54d0dc]
mov dword [edx + 0xd8], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0xdc], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0xe0], 0xfff6a45b
mov edx, dword [0x54d0dc]
mov dword [edx + 0xe4], 0xffb1600d
mov edx, dword [0x54d0dc]
mov dword [edx + 0xe8], edi
mov edx, dword [0x54d0dc]
mov dword [edx + 0xec], ecx
mov edx, dword [0x54d0dc]
mov dword [edx + 0xf0], 0x7b4d4b
mov edx, dword [0x54d0dc]
mov dword [edx + 0xf4], 0x808080
mov ebx, dword [0x54d0dc]
mov edx, 0xff30344e
mov dword [ebx + 0xf8], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0xfc], edx
mov edx, dword [0x54d0dc]
mov dword [edx + 0x100], 0xff4d4d4d
mov edx, dword [0x54d0dc]
mov dword [edx + 0x104], 0xff323232
mov ebx, dword [0x54d0dc]
mov edx, 0xffefefef
sub esp, 0x10
mov dword [ebx + 0x108], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0x10c], edx
mov ebx, dword [0x54d0dc]
mov edx, 0xff4b4d7b
mov dword [ebx + 0x110], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0x114], edx
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0x118], 0xff6d6ab8
mov ebx, dword [0x54d0dc]
mov dword [ebx + 0x11c], edx
mov edx, dword [0x54d0dc]
mov dword [edx + 0x120], 0xffff80
mov edx, dword [0x54d0dc]
mov dword [edx + 0x124], 0xe0e0e0
mov edx, dword [0x54d0dc]
mov dword [edx + 0x128], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x12c], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x130], 0xffa9a3fc
mov edx, dword [0x54d0dc]
mov dword [edx + 0x134], 0xff50498a
mov edx, dword [0x54d0dc]
mov dword [edx + 0x138], edi
mov edx, dword [0x54d0dc]
mov dword [edx + 0x13c], ecx
mov edx, dword [0x54d0dc]
mov dword [edx + 0x140], 0xb5b5b5
mov edx, dword [0x54d0dc]
mov dword [edx + 0x144], 0xc1c1c1
mov edx, dword [0x54d0dc]
mov dword [edx + 0x148], 0xff9c9c9c
mov edx, dword [0x54d0dc]
mov dword [edx + 0x14c], 0xfff8f8f8
mov edx, dword [0x54d0dc]
mov dword [edx + 0x150], 0xffa1a1a1
mov edx, dword [0x54d0dc]
mov dword [edx + 0x154], 0xffd1d1d1
mov edx, dword [0x54d0dc]
mov dword [edx + 0x158], 0xfff4f4f4
mov edx, dword [0x54d0dc]
mov dword [edx + 0x15c], 0xffb5b5b5
mov edi, dword [0x54d0dc]
mov edx, 0xffdadada
mov dword [edi + 0x160], edx
mov edi, dword [0x54d0dc]
mov dword [edi + 0x164], edx
mov edi, dword [0x54d0dc]
mov dword [edi + 0x168], 0xffcfcfcf
mov edi, dword [0x54d0dc]
mov dword [edi + 0x16c], edx
mov edx, dword [0x54d0dc]
mov dword [edx + 0x170], 0x8000
mov edx, dword [0x54d0dc]
mov dword [edx + 0x174], 0x404040
mov edx, dword [0x54d0dc]
mov dword [edx + 0x178], eax
mov edx, dword [0x54d0dc]
mov dword [edx + 0x17c], eax
mov eax, dword [0x54d0dc]
mov dword [eax + 0x180], 0xff757171
mov edx, dword [0x54d0dc]
mov dword [edx + 0x184], 0xff4e4e4e
mov eax, dword [0x54d0dc]
mov dword [eax + 0x188], 0x66000000
mov edx, dword [0x54d0dc]
mov eax, 0x80020004
mov dword [edx + 0x18c], ecx
mov edx, esp
mov ecx, 0xa
mov dword [edx], ecx
mov ecx, dword [ebp - 0x28]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0xc], eax
push 0x418868
push 0x418858
push 0x418840
call dword [sym.imp.MSVBVM60.DLL_rtcGetSetting]
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcR8ValFromBstr]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
lea ecx, [ebp - 0x18]
mov word [0x54d0bc], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x408198
lea ecx, [ebp - 0x1c]
call edi
mov edx, 0x4081a8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x38], 0x10
call edi
or eax, 0xffffffff
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
push edx
call fcn.00531620
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], esi
wait
push 0x541256
jmp 0x541255
ret