Function at 0x4049f0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4122fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xcc]
call fcn.00401000
xor ebx, ebx
lea ecx, [esp + 0x40]
mov dword [esp + 0xe0], ebx
call fcn.00410ff8
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x40]
push eax
push 0x41b70c
push ecx
mov byte [esp + 0xec], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.00410ff8
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x38]
push edx
push 0x41b70c
push eax
mov byte [esp + 0xec], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00410ff8
mov ecx, dword [esi + 0x14]
lea edx, [esp + 0x30]
push ecx
push 0x41b70c
push edx
mov byte [esp + 0xec], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00410ff8
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x28]
push eax
push 0x41b70c
push ecx
mov byte [esp + 0xec], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00410ff8
mov edx, dword [esi + 0x2c]
lea eax, [esp + 0x20]
push edx
push 0x41b70c
push eax
mov byte [esp + 0xec], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00410ff8
mov ecx, dword [esi + 0x30]
lea edx, [esp + 0x18]
push ecx
push 0x41b70c
push edx
mov byte [esp + 0xec], 6
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00410ff8
mov eax, dword [esi + 0x34]
mov byte [esp + 0xe0], 7
push eax
lea ecx, [esp + 0x14]
push 0x41b70c
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
call fcn.00410ff8
mov edx, dword [esi + 0x38]
lea eax, [esp + 0xc]
push edx
push 0x41b70c
push eax
mov byte [esp + 0xec], 8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00410ff8
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x24]
push ecx
push 0x41b70c
push edx
mov byte [esp + 0xec], 9
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.00410ff8
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x3c]
push eax
push 0x41b70c
push ecx
mov byte [esp + 0xec], 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00410ff8
mov edx, dword [esi + 0x24]
lea eax, [esp + 0x1c]
push edx
push 0x41b70c
push eax
mov byte [esp + 0xec], 0xb
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00410ff8
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x2c]
push ecx
push 0x41b70c
push edx
mov byte [esp + 0xec], 0xc
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
call fcn.00410ff8
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x14]
push eax
push 0x41b70c
push ecx
mov byte [esp + 0xec], 0xd
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.00410ff8
mov edx, dword [esi + 0x40]
lea eax, [esp + 0x34]
push edx
push 0x41b70c
push eax
mov byte [esp + 0xec], 0xe
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov dword [esp + 0x70], ebx
lea ecx, [esi + 4]
lea edx, [esp + 0xbc]
push ecx
push 0x41b698
push edx
mov byte [esp + 0xec], 0xf
call sub.MFC42.DLL_operator_2
push 0x41b29c
push eax
lea eax, [esp + 0xbc]
mov byte [esp + 0xe8], 0x10
push eax
call sub.MFC42.DLL_operator_1
add esi, 8
lea ecx, [esp + 0xac]
push esi
push eax
push ecx
mov byte [esp + 0xec], 0x11
call sub.MFC42.DLL_operator
push 0x41b694
lea edx, [esp + 0xa8]
push eax
push edx
mov byte [esp + 0xec], 0x12
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x40]
lea edx, [esp + 0x9c]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x13
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x9c]
mov byte [esp + 0xe8], 0x14
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x38]
lea edx, [esp + 0x8c]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x15
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x8c]
mov byte [esp + 0xe8], 0x16
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x30]
lea edx, [esp + 0x7c]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x17
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x7c]
mov byte [esp + 0xe8], 0x18
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 0x19
push ecx
lea edx, [esp + 0x70]
push eax
push edx
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x6c]
mov byte [esp + 0xe8], 0x1a
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0xc]
lea edx, [esp + 0x5c]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x1b
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0xe8], 0x1c
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x4c]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x1d
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x50]
mov byte [esp + 0xe8], 0x1e
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x10]
lea edx, [esp + 0x88]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x1f
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0xb0]
mov byte [esp + 0xe8], 0x20
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x20]
lea edx, [esp + 0x80]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x21
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0xc0]
mov byte [esp + 0xe8], 0x22
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x78]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x23
call sub.MFC42.DLL_operator
mov byte [esp + 0xe0], 0x24
push 0x41b690
push eax
lea eax, [esp + 0xa8]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x44]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x25
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0xc8]
mov byte [esp + 0xe8], 0x26
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x68]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x27
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0xa0]
mov byte [esp + 0xe8], 0x28
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x60]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x29
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0xb8]
mov byte [esp + 0xe8], 0x2a
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x58]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x2b
call sub.MFC42.DLL_operator
push 0x41b690
push eax
lea eax, [esp + 0x98]
mov byte [esp + 0xe8], 0x2c
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x34]
lea edx, [esp + 0x50]
push ecx
push eax
push edx
mov byte [esp + 0xec], 0x2d
call sub.MFC42.DLL_operator
push 0x41b68c
push eax
lea eax, [esp + 0xd0]
mov byte [esp + 0xe8], 0x2e
push eax
call sub.MFC42.DLL_operator_1
mov edi, dword [eax]
push 0xc
mov byte [esp + 0xe4], 0x2f
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0xc4], esi
cmp esi, ebx
mov byte [esp + 0xe0], 0x30
je 0x404fd2
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.004115da
cmp eax, ebx
mov dword [esi], eax
jne 0x404fd4
cmp edi, ebx
je 0x404fd4
push 0x8007000e
call fcn.0041171f
jmp 0x404fd4
xor esi, esi
lea ecx, [esp + 0xc8]
mov dword [esp + 0x70], esi
mov byte [esp + 0xe0], 0x2e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xe0], 0x2d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x90]
mov byte [esp + 0xe0], 0x2c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0xe0], 0x2b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb0]
mov byte [esp + 0xe0], 0x2a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x60]
mov byte [esp + 0xe0], 0x29
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x98]
mov byte [esp + 0xe0], 0x28
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0xe0], 0x27
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc0]
mov byte [esp + 0xe0], 0x26
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0xe0], 0x25
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa0]
mov byte [esp + 0xe0], 0x24
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x78]
mov byte [esp + 0xe0], 0x23
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb8]
mov byte [esp + 0xe0], 0x22
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0xe0], 0x21
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa8]
mov byte [esp + 0xe0], 0x20
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x88]
mov byte [esp + 0xe0], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0xe0], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
mov byte [esp + 0xe0], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe0], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov byte [esp + 0xe0], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x6c]
mov byte [esp + 0xe0], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0xe0], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov byte [esp + 0xe0], 0x17
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x84]
mov byte [esp + 0xe0], 0x16
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov byte [esp + 0xe0], 0x15
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xe0], 0x14
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe0], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xa4]
mov byte [esp + 0xe0], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xac]
mov byte [esp + 0xe0], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xb4]
mov byte [esp + 0xe0], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xbc]
mov byte [esp + 0xe0], 0xf
call sub.MFC42.DLL_CString::CString
push ecx
cmp esi, ebx
mov eax, esp
mov dword [esp + 0xc8], esp
mov dword [eax], esi
je 0x405248
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0xd0]
call fcn.004017a0
lea ecx, [esp + 0xcc]
call fcn.00401960
cmp esi, ebx
mov byte [esp + 0xe0], 0xe
je 0x4052a0
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4052a0
mov eax, dword [esi]
cmp eax, ebx
je 0x405287
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x405297
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0xe0], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xe0], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe0], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0xe0], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0xe0], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xe0], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0xe0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xe0], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xe0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0xe0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xe0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xe0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xe0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xcc]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00401040
mov ecx, dword [esp + 0xd8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xd8
ret