Function at 0x4046a0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401176
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401158
mov ecx, dword [0x406034]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor eax, eax
mov edx, 0x402d78
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
call esi
mov eax, dword [0x406034]
mov edx, 0x402d80
lea ecx, [eax + 4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402d88
add ecx, 8
call esi
mov eax, dword [0x406034]
mov edx, 0x402d90
lea ecx, [eax + 0xc]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402d98
add ecx, 0x10
call esi
mov eax, dword [0x406034]
mov edx, 0x402da0
lea ecx, [eax + 0x14]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402bfc
add ecx, 0x18
call esi
mov eax, dword [0x406034]
mov edx, 0x402c04
lea ecx, [eax + 0x1c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402c0c
add ecx, 0x20
call esi
mov eax, dword [0x406034]
mov edx, 0x402b50
lea ecx, [eax + 0x24]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402dac
add ecx, 0x28
call esi
mov eax, dword [0x406034]
mov edx, 0x402db4
lea ecx, [eax + 0x2c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402dbc
add ecx, 0x30
call esi
mov eax, dword [0x406034]
mov edx, 0x402dc4
lea ecx, [eax + 0x34]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402dcc
add ecx, 0x38
call esi
mov eax, dword [0x406034]
mov edx, 0x402dd4
lea ecx, [eax + 0x3c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402ddc
add ecx, 0x40
call esi
mov eax, dword [0x406034]
mov edx, 0x402de4
lea ecx, [eax + 0x44]
call esi
mov edx, 0x402dec
mov ecx, dword [0x406034]
add ecx, 0x48
call esi
mov eax, dword [0x406034]
mov edx, 0x402df4
lea ecx, [eax + 0x4c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402dfc
add ecx, 0x50
call esi
mov eax, dword [0x406034]
mov edx, 0x402e04
lea ecx, [eax + 0x54]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e0c
add ecx, 0x58
call esi
mov eax, dword [0x406034]
mov edx, 0x402e14
lea ecx, [eax + 0x5c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e1c
add ecx, 0x60
call esi
mov eax, dword [0x406034]
mov edx, 0x402e24
lea ecx, [eax + 0x64]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e2c
add ecx, 0x68
call esi
mov eax, dword [0x406034]
mov edx, 0x402e34
lea ecx, [eax + 0x6c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e3c
add ecx, 0x70
call esi
mov eax, dword [0x406034]
mov edx, 0x402e44
lea ecx, [eax + 0x74]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e4c
add ecx, 0x78
call esi
mov eax, dword [0x406034]
mov edx, 0x402e54
lea ecx, [eax + 0x7c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e5c
add ecx, 0x80
call esi
mov eax, dword [0x406034]
mov edx, 0x402e64
lea ecx, [eax + 0x84]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e6c
add ecx, 0x88
call esi
mov eax, dword [0x406034]
mov edx, 0x402e74
lea ecx, [eax + 0x8c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e7c
add ecx, 0x90
call esi
mov eax, dword [0x406034]
mov edx, 0x402e84
lea ecx, [eax + 0x94]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e8c
add ecx, 0x98
call esi
mov eax, dword [0x406034]
mov edx, 0x402e94
lea ecx, [eax + 0x9c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402e9c
add ecx, 0xa0
call esi
mov eax, dword [0x406034]
mov edx, 0x402ea4
lea ecx, [eax + 0xa4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402eac
add ecx, 0xa8
call esi
mov eax, dword [0x406034]
mov edx, 0x402eb4
lea ecx, [eax + 0xac]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402ebc
add ecx, 0xb0
call esi
mov eax, dword [0x406034]
mov edx, 0x402ec4
lea ecx, [eax + 0xb4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402ecc
add ecx, 0xb8
call esi
mov eax, dword [0x406034]
mov edx, 0x402ed4
lea ecx, [eax + 0xbc]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402edc
add ecx, 0xc0
call esi
mov eax, dword [0x406034]
mov edx, 0x402ee4
lea ecx, [eax + 0xc4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402eec
add ecx, 0xc8
call esi
mov eax, dword [0x406034]
mov edx, 0x402ef4
lea ecx, [eax + 0xcc]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402efc
add ecx, 0xd0
call esi
mov eax, dword [0x406034]
mov edx, 0x402f04
lea ecx, [eax + 0xd4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f0c
add ecx, 0xd8
call esi
mov eax, dword [0x406034]
mov edx, 0x402f14
lea ecx, [eax + 0xdc]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f1c
add ecx, 0xe0
call esi
mov eax, dword [0x406034]
mov edx, 0x402f24
lea ecx, [eax + 0xe4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f2c
add ecx, 0xe8
call esi
mov eax, dword [0x406034]
mov edx, 0x402f34
lea ecx, [eax + 0xec]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f3c
add ecx, 0xf0
call esi
mov eax, dword [0x406034]
mov edx, 0x402f44
lea ecx, [eax + 0xf4]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f4c
add ecx, 0xf8
call esi
mov eax, dword [0x406034]
mov edx, 0x402f54
lea ecx, [eax + 0xfc]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f5c
add ecx, 0x100
call esi
mov eax, dword [0x406034]
mov edx, 0x402f64
lea ecx, [eax + 0x104]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f6c
add ecx, 0x108
call esi
mov eax, dword [0x406034]
mov edx, 0x402f74
lea ecx, [eax + 0x10c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f7c
add ecx, 0x110
call esi
mov eax, dword [0x406034]
mov edx, 0x402f84
lea ecx, [eax + 0x114]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f8c
add ecx, 0x118
call esi
mov eax, dword [0x406034]
mov edx, 0x402f94
lea ecx, [eax + 0x11c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402f9c
add ecx, 0x120
call esi
mov eax, dword [0x406034]
mov edx, 0x402fa4
lea ecx, [eax + 0x124]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402fac
add ecx, 0x128
call esi
mov eax, dword [0x406034]
mov edx, 0x402fb4
lea ecx, [eax + 0x12c]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402fbc
add ecx, 0x130
call esi
lea edx, [ebp - 0x24]
push 0x22
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [0x406034]
mov edx, eax
add ecx, 0x134
call esi
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [0x406034]
mov edx, 0x402fc4
lea ecx, [eax + 0x138]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402fcc
add ecx, 0x13c
call esi
mov eax, dword [0x406034]
mov edx, 0x402fd4
lea ecx, [eax + 0x140]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402fdc
add ecx, 0x144
call esi
mov eax, dword [0x406034]
mov edx, 0x402fe4
lea ecx, [eax + 0x148]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402fec
add ecx, 0x14c
call esi
mov eax, dword [0x406034]
mov edx, 0x402ff4
lea ecx, [eax + 0x150]
call esi
mov ecx, dword [0x406034]
mov edx, 0x402ffc
add ecx, 0x154
call esi
mov eax, dword [0x406034]
mov edx, 0x403004
lea ecx, [eax + 0x158]
call esi
mov ecx, dword [0x406034]
mov edx, 0x40300c
add ecx, 0x15c
call esi
mov eax, dword [0x406034]
mov edx, 0x402ab0
lea ecx, [eax + 0x160]
call esi
mov ecx, dword [0x406034]
mov edx, 0x403014
add ecx, 0x164
call esi
mov eax, dword [0x406034]
mov edx, 0x40301c
lea ecx, [eax + 0x168]
call esi
mov ecx, dword [0x406034]
mov edx, 0x403024
add ecx, 0x16c
call esi
mov eax, dword [0x406034]
mov edx, 0x40302c
lea ecx, [eax + 0x170]
call esi
mov ecx, dword [0x406034]
mov edx, 0x403034
add ecx, 0x174
call esi
mov eax, dword [0x406034]
mov edx, 0x402bb0
lea ecx, [eax + 0x178]
call esi
push 0x404d9d
jmp 0x404d9c
ret