Function at 0x494990
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x529776
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc0], esi
call sub.MFC42.DLL_CWnd::CWnd
xor ebp, ebp
mov dword [esi + 0x40], 0x53a074
mov dword [esp + 0xe4], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x48], ebp
lea ecx, [esi + 0x58]
mov byte [esp + 0xe4], 1
call fcn.004cb6c0
lea edi, [esi + 0x74]
mov byte [esp + 0xe4], 2
mov ecx, edi
mov dword [esp + 0xbc], edi
call fcn.004ac5c0
lea ebx, [edi + 0x110]
mov byte [esp + 0xe4], 3
mov ecx, ebx
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [edi + 0x118]
mov byte [esp + 0xe4], 4
mov dword [esp + 0x14], ecx
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [edi + 0x120]
mov byte [esp + 0xe4], 5
mov dword [esp + 0x10], ecx
call sub.MFC42.DLL_CImageList::CImageList
lea ecx, [edi + 0x128]
mov byte [esp + 0xe4], 6
mov dword [esp + 0x18], ecx
call sub.MFC42.DLL_CImageList::CImageList
mov eax, 0xa
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, 4
mov byte [esp + 0xe4], 7
mov dword [edi], 0x539f98
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x8c], 0x11f
mov dword [esp + 0x90], 0x120
mov dword [esp + 0x94], 0x121
mov dword [esp + 0x98], 0x122
mov dword [esp + 0x9c], 0x123
mov dword [esp + 0xa0], 0x124
mov dword [esp + 0xa4], 0x125
mov dword [esp + 0xa8], 0x126
mov dword [esp + 0xac], 0x127
mov dword [esp + 0xb0], 0x128
mov dword [esp + 0xb4], 0x129
mov dword [esp + 0xb8], 0x12a
call fcn.004960f0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 8
call fcn.004960f0
mov byte [esp + 0xe4], 9
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x2000
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push ebp
push ebp
push ebp
push 0x11d
push eax
call edi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CGdiObject::Attach
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x2000
push ebp
push ebp
push ebp
push 0x11e
push eax
call edi
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x24]
neg ecx
sbb ecx, ecx
lea edx, [esp + 0x24]
and ecx, eax
mov dword [esp + 0x68], ebp
neg edx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x24]
sbb edx, edx
mov dword [esp + 0x6c], ebp
and edx, eax
mov dword [esp + 0x70], ebp
neg ecx
mov dword [esp + 0x60], edx
lea edx, [esp + 0x1c]
sbb ecx, ecx
mov dword [esp + 0x74], ebp
and ecx, eax
mov eax, dword [esp + 0x20]
neg edx
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x1c]
sbb edx, edx
mov dword [esp + 0x78], ebp
and edx, eax
mov dword [esp + 0x7c], ebp
neg ecx
mov dword [esp + 0x80], edx
lea edx, [esp + 0x1c]
sbb ecx, ecx
mov dword [esp + 0x4c], ebx
and ecx, eax
neg edx
sbb edx, edx
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x10]
and edx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x10], eax
jmp 0x494c33
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax + 0x4c]
mov edx, dword [esp + eax + 0x2c]
mov eax, dword [esp + eax + 0x3c]
push 3
push ebp
push 0x19
push edx
push eax
mov dword [esp + 0x2c], ecx
call sub.MFC42.DLL_CImageList::Create
push fcn.00401970
push fcn.004960f0
push 3
lea ecx, [esp + 0xd0]
push 8
push ecx
call fcn.004c79df
mov byte [esp + 0xe4], 0xa
lea ebx, [esp + 0xc4]
mov dword [esp + 0x14], 3
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0x2000
xor edx, edx
push ebp
mov dx, word [esp + edi + 0x94]
push ebp
push ebp
push edx
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
cmp ebx, ebp
jne 0x494cb3
xor ecx, ecx
jmp 0x494cb6
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + edi + 0x5c]
push edx
push ecx
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Add]
mov eax, dword [esp + 0x14]
add edi, 4
add ebx, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x494c81
push fcn.00401970
push 3
lea eax, [esp + 0xcc]
push 8
push eax
mov byte [esp + 0xf4], 9
call fcn.004c7870
mov eax, dword [esp + 0x10]
add eax, 4
cmp eax, 0x10
mov dword [esp + 0x10], eax
jl 0x494c2f
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 8
mov dword [esp + 0x1c], 0x53bdb8
call fcn.00401890
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 7
call fcn.00401970
lea ecx, [esi + 0x1a4]
mov byte [esp + 0xe4], 0xb
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x1a8]
mov byte [esp + 0xe4], 0xc
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x1ac]
mov byte [esp + 0xe4], 0xd
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x1b0]
mov byte [esp + 0xe4], 0xe
mov ecx, edi
call fcn.00401860
mov dword [edi], 0x53bdb8
lea ebx, [esi + 0x1c0]
mov byte [esp + 0xe4], 0xf
mov ecx, ebx
call fcn.00401860
mov dword [ebx], 0x53bdb8
lea ebx, [esi + 0x1d0]
mov byte [esp + 0xe4], 0x10
mov ecx, ebx
call fcn.00401860
mov dword [ebx], 0x53bdb8
mov eax, 1
lea edx, [esi + 0x200]
xor ecx, ecx
mov dword [esi], 0x539ed8
mov dword [esi + 0x1b8], ebp
mov dword [esi + 0x1bc], ebp
mov dword [esi + 0x1e0], ebp
mov dword [esi + 0x1f0], 0xf
mov dword [esi + 0x1f4], 0x28
mov dword [esi + 0x1f8], pe_nt_image_headers32
mov dword [esi + 0x1fc], 0xa6
mov dword [esi + 0x60], 0x157
mov dword [esi + 0x64], 0xb6
mov dword [esi + 0x68], ebp
mov dword [esi + 0x1e4], 0xe
mov dword [esi + 0x1e8], 7
mov dword [esi + 0x1ec], eax
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x70], ebp
mov dword [edx], ecx
lea ebx, [esi + 0x58]
push 0x5672b4
mov dword [edx + 4], ecx
mov byte [esp + 0xe8], 0x11
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov ecx, ebx
mov dword [esi + 0x54], eax
call fcn.004cb880
cmp eax, ebp
mov dword [esi + 0x54], eax
je 0x494ea9
mov ecx, ebx
call fcn.004e47d0
mov ecx, eax
call fcn.004cefa0
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov ecx, ebx
call fcn.004e47d0
mov ecx, eax
call fcn.004e4820
mov ecx, ebx
mov dword [esi + 0x1b8], eax
call fcn.004e47d0
mov ecx, eax
call fcn.0048a1c0
mov dword [esi + 0x1bc], eax
mov ecx, dword [esp + 0xdc]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xd8
ret