Function at 0x467b60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x467b85
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x467b90
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x467f07
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov ebx, eax
xor eax, eax
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov edi, eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov edx, 0x8000
mov eax, 0x467f20
call fcn.0040e6e8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x467ee5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
je 0x467c69
mov edx, 0x8000
mov eax, 0x467f38
call fcn.0040e6e8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
je 0x467c69
cmp dword [ebp - 0x18], 0
je 0x467c69
push 0x467f44
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
push 0x467f50
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
push 0x467f5c
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x467f6c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x467f80
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
push 0x467f94
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
test ebx, ebx
je 0x467c87
test esi, esi
je 0x467c87
cmp dword [ebp - 0x1c], 0
je 0x467c87
test edi, edi
je 0x467c87
cmp dword [ebp - 0x20], 0
je 0x467c87
cmp dword [ebp - 0x24], 0
jne 0x467cb3
xor eax, eax
mov ebx, eax
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4b0130]
call fcn.00406550
mov edx, dword [ebp - 8]
mov eax, dword [0x4b0130]
call fcn.00406550
call fcn.00404064
jmp 0x467eec
call fcn.00464ed4
mov word [ebp - 0x3e], ax
xor eax, eax
push ebp
push 0x467eb2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, 0x133f
call fcn.00402a78
xor eax, eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x31], 0
cmp dword [ebp - 4], 0
jne 0x467d13
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4b0130]
call fcn.00406550
mov edx, dword [ebp - 8]
mov eax, dword [0x4b0130]
call fcn.00406550
call fcn.00404064
call fcn.00404064
jmp 0x467eec
lea eax, [ebp - 0x66]
xor ecx, ecx
mov edx, 0x28
call fcn.00403030
mov word [ebp - 0x66], 0x28
mov word [ebp - 0x64], 1
mov dword [ebp - 0x62], 0x24
mov byte [ebp - 0x5e], 0
mov byte [ebp - 0x5d], 0x18
mov byte [ebp - 0x4f], 0x20
mov byte [ebp - 0x4c], 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetDC
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x467e94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x66]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_ChoosePixelFormat
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x467d7f
mov eax, 0x467fac
call fcn.00467af8
lea eax, [ebp - 0x66]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x30]
push eax
call sub.gdi32.dll_SetPixelFormat
test eax, eax
jne 0x467d9e
mov eax, 0x467fc8
call fcn.00467af8
mov eax, dword [ebp - 0x30]
push eax
call edi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x467db7
mov eax, 0x467fe0
call fcn.00467af8
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp - 0x24]
test eax, eax
jne 0x467dd0
mov eax, 0x467ffc
call fcn.00467af8
push 0x1f02
call ebx
mov edi, eax
test edi, edi
je 0x467de9
lea edx, [ebp - 0x38]
mov eax, edi
call fcn.004097f4
jmp 0x467e0b
mov byte [ebp - 0x31], 1
call esi
mov edi, eax
test edi, edi
je 0x467e0b
push edi
call dword [ebp - 0x1c]
mov edx, eax
lea eax, [ebp - 0x38]
call fcn.00404790
lea eax, [ebp - 0x3c]
call fcn.00404598
push 0x1f00
call ebx
mov edi, eax
test edi, edi
je 0x467e24
lea edx, [ebp - 0x3c]
mov eax, edi
call fcn.004097f4
jmp 0x467e52
mov byte [ebp - 0x31], 1
call esi
mov edi, eax
test edi, edi
je 0x467e52
push edi
call dword [ebp - 0x1c]
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404790
call fcn.00404064
call fcn.00404064
call fcn.00404064
jmp 0x467eec
mov al, byte [ebp - 0x31]
xor al, 1
mov byte [ebp - 0xd], al
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x38]
call fcn.004045ec
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
call fcn.004045ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467e9b
push 0
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp - 0x24]
cmp dword [ebp - 0x2c], 0
je 0x467e93
mov eax, dword [ebp - 0x2c]
push eax
call dword [ebp - 0x20]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467f0e
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004045bc
ret