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

Disassembly:
mov eax, dword [0x4464d8]
sub esp, 0x28
push eax
call fcn.00405260
add esp, 4
test eax, eax
je 0x409470
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.00409230
add esp, 0xc
add esp, 0x28
ret
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
cmp edi, ebp
jne 0x40967b
mov eax, dword [esp + 0x40]
xor esi, esi
jmp 0x4094b0
cmp eax, dword [esi*8 + 0x4431bc]
je 0x4094f1
cmp eax, dword [esi*8 + 0x4431c4]
je 0x4094e6
cmp eax, dword [esi*8 + 0x4431cc]
je 0x4094e9
cmp eax, dword [esi*8 + 0x4431d4]
je 0x4094ee
add esi, 4
cmp esi, 0x10
jl 0x4094b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
inc esi
jmp 0x4094f1
add esi, 2
jmp 0x4094f1
add esi, 3
cmp esi, 0x10
jge 0x4097f5
mov eax, dword [esi*8 + 0x4431c0]
cmp eax, ebp
je 0x4097f5
cmp dword [eax + 0x2c], ebp
je 0x40951b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
cmp eax, ebp
je 0x4097f5
mov ecx, dword [eax]
push str.nvcpl.dll
mov dword [esp + 0x34], ecx
call fcn.00404550
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x4097f5
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DMGetProjectedGDIModeList
push edi
call ebx
cmp eax, ebp
jne 0x409563
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
push 1
push 1
call eax
cmp dword [esp + 0x18], 0
mov ebp, eax
je 0x4095c4
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
shl eax, 4
push eax
call fcn.00422359
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4097f5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
push 0
push edx
call fcn.00422290
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x409604
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 4
push eax
call fcn.00422359
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x4097f5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
push 0
push edx
call fcn.00422290
add esp, 0xc
mov eax, dword [0x446434]
test eax, eax
je 0x409637
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ecx
push 4
call eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 4
call dword [0x446434]
push str.DMReleaseMemory
push edi
call ebx
test eax, eax
je 0x40964e
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40964e
push ecx
call eax
mov edx, dword [esi*8 + 0x4431c0]
mov eax, dword [esp + 0x20]
mov dword [edx + 0x28], eax
mov ecx, dword [esi*8 + 0x4431c0]
mov edx, dword [esp + 0x10]
push edi
mov dword [ecx + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x40]
mov ecx, ebx
xor eax, eax
or ecx, dword [esp + 0x44]
cmp ecx, dword [eax*8 + 0x44323c]
je 0x4096ca
cmp ecx, dword [eax*8 + 0x443244]
je 0x4096bf
cmp ecx, dword [eax*8 + 0x44324c]
je 0x4096c2
cmp ecx, dword [eax*8 + 0x443254]
je 0x4096c7
add eax, 4
cmp eax, 0x100
jl 0x409687
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
inc eax
jmp 0x4096ca
add eax, 2
jmp 0x4096ca
add eax, 3
cmp eax, 0x100
jge 0x4097f5
mov eax, dword [eax*8 + 0x443240]
cmp edi, 1
jne 0x409721
mov esi, eax
mov edi, 2
jmp 0x4096f0
mov eax, dword [esi]
mov dword [esi + 8], 1
cmp eax, ebp
je 0x409717
mov eax, dword [eax + 0x28]
cmp eax, ebp
je 0x409717
push eax
call fcn.00422423
mov eax, dword [esi]
mov dword [eax + 0x28], ebp
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x2c], ebp
add esi, 0x78
sub edi, 1
jne 0x4096f0
jmp 0x40974b
push ebx
call fcn.00408fa0
mov esi, eax
mov edx, dword [esi]
mov dword [esi + 8], edi
mov eax, dword [edx + 0x28]
add esp, 4
cmp eax, ebp
je 0x40974b
push eax
call fcn.00422423
mov eax, dword [esi]
mov dword [eax + 0x28], ebp
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x2c], ebp
push ebx
call fcn.00408fa0
mov ebp, eax
xor edi, edi
add esp, 4
cmp ebp, edi
je 0x4097f5
mov dword [esp + 0x30], edi
mov eax, dword [ebp]
cmp eax, edi
je 0x409771
mov edx, dword [eax]
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x44]
push eax
call fcn.00408fa0
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, edi
je 0x4097f5
mov dword [esp + 0x34], edi
mov eax, dword [eax]
cmp eax, edi
je 0x409796
mov ecx, dword [eax]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
dec eax
cmp eax, 3
ja case.default.0x4097a0
jmp dword [eax*4 + 0x409994]
mov esi, 5
jmp 0x4097c5
mov esi, 3
jmp 0x4097c5
mov esi, 2
jmp 0x4097c5
mov esi, 1
jmp 0x4097c5
xor esi, esi
push str.nvcpl.dll
call fcn.00404550
mov ebx, eax
add esp, 4
mov dword [esp + 0x28], ebx
cmp ebx, edi
je 0x4097f5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DMGetProjectedGDIModeList
push ebx
call edi
test eax, eax
jne 0x4097ff
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push 1
call eax
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x409859
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*2]
shl eax, 4
push eax
call fcn.00422359
mov ecx, eax
add esp, 4
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4097f5
mov eax, dword [esp + 0x10]
lea edx, [eax + eax*2]
shl edx, 4
push edx
push 0
push ecx
call fcn.00422290
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x409899
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
shl eax, 4
push eax
call fcn.00422359
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x4097f5
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
shl ecx, 4
push ecx
push 0
push esi
call fcn.00422290
add esp, 0xc
jmp 0x40989d
mov esi, dword [esp + 0x24]
mov eax, dword [0x446434]
test eax, eax
je 0x4098cc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push 4
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push esi
push eax
push ecx
push 4
call dword [0x446434]
mov edx, dword [esp + 0x28]
push str.DMReleaseMemory
push edx
call edi
mov esi, eax
test esi, esi
je 0x4098f4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4098e9
push eax
call esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4098f4
push eax
call esi
mov eax, dword [ebp]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x409911
push eax
call fcn.00422423
mov ecx, dword [ebp]
add esp, 4
mov dword [ecx + 0x28], 0
cmp dword [esp + 0x3c], 1
mov edx, dword [ebp]
mov eax, dword [esp + 0x20]
mov dword [edx + 0x28], eax
mov ecx, dword [ebp]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x2c], edx
jne 0x40997d
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x40994b
mov edx, dword [esp + 0x28]
push edx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x2c]
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
mov ebx, 1
test eax, eax
je 0x40996f
push eax
call fcn.00422423
mov ecx, dword [esi]
add esp, 4
mov dword [ecx + 0x28], 0
mov edx, dword [esi]
mov dword [edx + 0x28], edi
mov eax, dword [esi]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x2c], ecx
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x28
ret