Function at 0x461020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492696
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esi + 0x40]
cmp eax, ebx
jne 0x46104d
xor eax, eax
jmp 0x461050
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46155c
mov ecx, dword [esi + 0x60]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push ebx
push 0x437
push ecx
mov dword [esp + 0x20], 0xffffffff
call edi
mov edx, dword [esi + 0x60]
push ebx
push ebx
push 0x303
push edx
call edi
cmp dword [esi + 0x88], ebx
jne 0x4610af
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x60]
push eax
push ebx
push 0xc2
push ecx
call edi
jmp 0x46155c
mov dl, byte [esp + 0x2b]
push ebp
push ebx
push ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], dl
call fcn.004615c0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov ecx, dword [esi + 0x88]
mov dword [esp + 0x1b0], ebx
call fcn.00441bc0
cmp eax, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ebx
jle 0x4614b8
jmp 0x4610f1
xor ebx, ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x88]
push eax
call fcn.00476150
mov ebp, eax
mov ecx, ebp
mov dword [esp + 0x48], ebp
call fcn.00441bc0
mov ecx, dword [esp + 0x1b8]
push 0x5a
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0xf4], 0xbc
mov dword [esp + 0xf8], 0x108
mov word [esp + 0x10c], 1
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, dword [esi + 0x8c]
cmp eax, ebx
mov dword [esp + 0x40], ecx
jge 0x461163
mov byte [esp + 0x196], 0
mov dword [esp + 0x190], ebx
jmp 0x46117e
lea eax, [eax + eax*4]
mov byte [esp + 0x196], 4
lea eax, [eax + eax*8]
shl eax, 5
cdq
idiv ecx
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4611d2
push ebx
mov ecx, ebp
call fcn.00476150
mov ecx, eax
call fcn.004410a0
and eax, 7
jne 0x4611a5
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x461186
jmp 0x4611d2
dec eax
je 0x4611c8
dec eax
je 0x4611bc
sub eax, 2
jne 0x4611d2
mov word [esp + 0x104], 1
jmp 0x4611d2
mov word [esp + 0x104], 2
jmp 0x4611d2
mov word [esp + 0x104], 3
mov eax, dword [esi + 0x60]
lea edx, [esp + 0xec]
push edx
push 0
push 0x447
push eax
mov dword [esp + 0xfc], 0xbc
call edi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], 0
test eax, eax
jle 0x46148f
jmp 0x46120c
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x34]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x1b0], 1
push ecx
mov ecx, ebp
call fcn.00476150
mov ebp, eax
mov dword [esp + 0x78], 0x74
mov ecx, ebp
mov dword [esp + 0x7c], 0xc0000007
mov dword [esp + 0x80], 0
call fcn.00441bc0
lea eax, [eax + eax*4]
xor edx, edx
mov ecx, ebp
lea eax, [eax + eax*8]
shl eax, 5
div dword [esp + 0x40]
mov dword [esp + 0x84], eax
call fcn.00441be0
mov ecx, ebp
mov dword [esp + 0x8c], eax
call fcn.00441bf0
push eax
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 0x34]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4612b3
push 0x20
lea edx, [esp + 0x96]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [esp + 0x7c]
mov byte [esp + 0x91], 0
or eax, 0x20000000
mov dword [esp + 0x7c], eax
mov ecx, ebp
call fcn.004410a0
test al, 0x10
je 0x4612c6
or dword [esp + 0x80], 1
test al, 0x20
je 0x4612d2
or dword [esp + 0x80], 2
test al, 0x40
je 0x4612e6
mov eax, dword [esp + 0x80]
or al, 4
mov dword [esp + 0x80], eax
mov ecx, ebp
call fcn.0045afb0
mov ecx, dword [esi + 0x60]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x434
push ecx
call edi
mov ecx, ebp
call fcn.004747c0
mov eax, dword [eax]
mov edx, dword [esi + 0x60]
push eax
push 0
push 0xc2
push edx
call edi
mov ecx, dword [esi + 0x60]
lea eax, [esp + 0x10]
push eax
push 0
push 0x437
push ecx
mov dword [esp + 0x24], 0xffffffff
call edi
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x78]
push edx
push 1
push 0x444
push eax
call edi
test ebx, ebx
jbe 0x46144c
mov eax, dword [esp + 0x1bc]
test eax, eax
je 0x46144c
mov eax, dword [esp + 0x1c0]
test eax, eax
je 0x46144c
mov edx, dword [esi + 0x60]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x434
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x60]
push eax
push 0
push 0x436
push ecx
call edi
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x60]
push edx
push 0
push 0x436
push eax
call edi
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x60]
push ecx
push edx
push 0xd6
push eax
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x60]
lea edx, [esp + 0x70]
push ecx
push edx
push 0xd6
push eax
call edi
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x46144c
mov eax, dword [esi + 0x8c]
test eax, eax
jg 0x4613ef
mov ecx, ebp
call fcn.00441bc0
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x54]
add eax, ebp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
sub ecx, edx
mov dword [esp + 0x64], ebp
add ecx, edx
lea ebp, [eax + 4]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
mov edx, dword [ebp]
push edx
push eax
lea ecx, [esp + 0x24]
call fcn.004615c0
mov dword [ebp], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
lea ecx, [esp + 0x5c]
add eax, 8
push ecx
push eax
call fcn.00461730
mov eax, dword [esp + 0x2c]
add esp, 8
inc eax
mov dword [esp + 0x24], eax
or eax, 0xffffffff
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x60]
push edx
push 0
push 0x437
push eax
call edi
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b0], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x461208
mov ecx, dword [esi + 0x60]
push 0x4af7e0
push 0
push 0xc2
push ecx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x4610ef
xor ebx, ebx
mov ecx, dword [esp + 0x1bc]
cmp ecx, ebx
je 0x461519
mov ebp, dword [esp + 0x1c0]
cmp ebp, ebx
je 0x461519
mov eax, dword [esp + 0x24]
mov dword [ecx], eax
cmp eax, ebx
mov dword [ebp], ebx
jbe 0x461519
lea edx, [eax + eax*4]
shl edx, 2
push edx
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x24]
mov dword [ebp], eax
add esp, 4
mov eax, dword [ecx]
cmp eax, ecx
je 0x46151d
xor edx, edx
mov ebx, dword [ebp]
mov edi, edx
lea esi, [eax + 8]
add edi, ebx
mov ecx, 5
add edx, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jne 0x4614f9
jmp 0x46151d
mov ecx, dword [esp + 0x20]
mov edi, ecx
pop ebp
mov esi, dword [edi]
cmp esi, edi
je 0x461553
mov eax, esi
mov esi, dword [esi]
push eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x24]
add esp, 4
dec ecx
cmp esi, edi
mov dword [esp + 0x20], ecx
jne 0x461526
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret 0xc