Function at 0x4091c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x430833
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
call fcn.004154f0
mov eax, dword [eax + 0x5670]
mov ebx, 1
cmp eax, ebx
jne 0x4091f7
mov dword [esp + 0xc], ebx
jmp 0x40922d
mov ecx, esi
call fcn.004154f0
mov edx, dword [eax + 0x5670]
mov ecx, 2
cmp edx, ecx
jne 0x409213
mov dword [esp + 0xc], ecx
jmp 0x40922d
mov ecx, esi
call fcn.004154f0
mov eax, dword [eax + 0x5670]
cmp eax, 3
jne 0x409523
mov dword [esp + 0xc], eax
push 0x10
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
mov dword [esp + 0x2c], 0
je 0x40926f
mov ecx, esi
call fcn.004154f0
add eax, 0x133c
mov ecx, edi
push eax
push 0x448de0
call fcn.00407810
mov dword [edi + 0xc], 0x448fc0
mov dword [edi], 0x436c40
push ebp
or ebp, 0xffffffff
push 0x10
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
test edi, edi
mov dword [esp + 0x30], ebx
je 0x4092be
mov ecx, esi
call fcn.004154f0
mov ebx, dword [eax + 0x566c]
mov ecx, esi
call fcn.004154f0
add eax, 0x133c
mov ecx, edi
push eax
push 0x448de0
call fcn.00407810
mov dword [edi + 0xc], ebx
mov dword [edi], 0x436c38
push 0x20
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x30], 2
je 0x40935a
mov ecx, esi
call fcn.004154f0
mov al, byte [eax + 0x5674]
mov ecx, esi
mov byte [esp + 0x14], al
call fcn.004154f0
mov ebp, dword [eax + 0x566c]
mov ecx, esi
call fcn.004154f0
mov ebx, eax
push 0x448de0
mov ecx, edi
add ebx, 0x133c
call fcn.004246a0
mov dword [edi + 8], ebx
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], ecx
lea ecx, [edi + 0x18]
mov dword [edi + 0x14], 0x448fc0
mov dword [ecx], 0
mov edx, dword [esp + 0x14]
mov byte [esp + 0x30], 4
and edx, 0xff
mov dword [edi], 0x436c30
mov dword [edi + 0x1c], edx
call fcn.00408330
mov dword [esp + 0x14], edi
or ebp, 0xffffffff
jmp 0x409362
mov dword [esp + 0x14], 0
push 0x10
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
mov dword [esp + 0x30], 5
je 0x4093ad
mov ecx, esi
call fcn.004154f0
mov ebx, eax
push 0x448de0
mov ecx, edi
add ebx, 0x133c
call fcn.004246a0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], 0x448fc0
mov dword [edi], 0x436c28
push 0x18
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
mov dword [esp + 0x30], 6
je 0x409412
mov ecx, esi
call fcn.004154f0
mov ebp, dword [eax + 0x566c]
mov ecx, esi
call fcn.004154f0
mov edi, eax
push 0x448de0
mov ecx, ebx
add edi, 0x133c
call fcn.004246a0
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], edi
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0x448fc0
mov dword [ebx], 0x436c20
or ebp, 0xffffffff
push 0x18
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
mov dword [esp + 0x30], 7
je 0x409477
mov ecx, esi
call fcn.004154f0
mov ebp, dword [eax + 0x566c]
mov ecx, esi
call fcn.004154f0
mov edi, eax
push 0x448de0
mov ecx, ebx
add edi, 0x133c
call fcn.004246a0
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], edi
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], 0x448fc0
mov dword [ebx], 0x436c18
or ebp, 0xffffffff
push 0x1c
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
mov dword [esp + 0x30], 8
pop ebp
je 0x409546
mov ecx, esi
call fcn.004154f0
mov edi, dword [eax + 0x566c]
mov ecx, esi
call fcn.004154f0
mov esi, eax
push 0x448de0
mov ecx, ebx
add esi, 0x133c
call fcn.004246a0
mov dword [ebx + 8], esi
mov edx, dword [esp + 0xc]
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], 0x448fc0
mov dword [ebx + 0x18], 0
mov eax, dword [esp + 0x10]
mov dword [ebx], 0x436c10
push 1
mov byte [esp + 0x30], 0xa
mov esi, dword [eax + 0x18]
mov dword [ebx + 0x18], esi
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov eax, dword [esi]
lea ecx, [esp + 0x18]
inc eax
mov dword [esi], eax
call sub.MFC42.DLL_CSingleLock::Unlock
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov ecx, esi
call fcn.004154f0
mov eax, dword [eax + 0x5670]
push eax
push str.Unknown_PrtDrvType___d
push ebx
call fcn.00401310
push eax
call dword [sym.imp.CwLogging.dll_public:_void___cdecl_CwLogging::LogWrite_unsigned_long_int__char_const__]
add esp, 0x10
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret