Function at 0x49fedc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x49feff
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x49ff0a
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x4a0294
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, 0x8000
mov eax, 0x4a02ac
call fcn.00410a78
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4a0272
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x49ffe9
mov edx, 0x8000
mov eax, 0x4a02c4
call fcn.00410a78
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x49ffe9
cmp dword [ebp - 0x14], 0
je 0x49ffe9
push 0x4a02d0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x18], eax
push 0x4a02dc
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x1c], eax
push 0x4a02e8
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x20], eax
push 0x4a02f8
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x24], eax
push 0x4a030c
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x28], eax
push 0x4a0320
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x18], 0
je 0x4a000d
cmp dword [ebp - 0x1c], 0
je 0x4a000d
cmp dword [ebp - 0x20], 0
je 0x4a000d
cmp dword [ebp - 0x24], 0
je 0x4a000d
cmp dword [ebp - 0x28], 0
je 0x4a000d
cmp dword [ebp - 0x2c], 0
jne 0x4a0040
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x503e14]
mov edx, dword [edx]
call fcn.00404ab4
mov eax, dword [ebp - 4]
mov edx, dword [0x503e14]
mov edx, dword [edx]
call fcn.00404ab4
call fcn.00404480
jmp 0x4a0279
call fcn.0049ac0c
mov word [ebp - 0x42], ax
xor eax, eax
push ebp
push 0x4a023f
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, 0x133f
call fcn.00403324
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 9], 0
xor ebx, ebx
test esi, esi
jne 0x4a00a2
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x503e14]
mov edx, dword [edx]
call fcn.00404ab4
mov eax, dword [ebp - 4]
mov edx, dword [0x503e14]
mov edx, dword [edx]
call fcn.00404ab4
call fcn.00404480
call fcn.00404480
jmp 0x4a0279
lea eax, [ebp - 0x6a]
xor ecx, ecx
mov edx, 0x28
call fcn.004035b8
mov word [ebp - 0x6a], 0x28
mov word [ebp - 0x68], 1
mov dword [ebp - 0x66], 0x24
mov byte [ebp - 0x62], 0
mov byte [ebp - 0x61], 0x18
mov byte [ebp - 0x53], 0x20
mov byte [ebp - 0x50], 0
push esi
call sub.user32.dll_GetDC
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4a0221
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6a]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.gdi32.dll_ChoosePixelFormat
mov esi, eax
test esi, esi
jne 0x4a0108
mov eax, 0x4a0338
call fcn.0049fe74
lea eax, [ebp - 0x6a]
push eax
push esi
mov eax, dword [ebp - 0x34]
push eax
call sub.gdi32.dll_SetPixelFormat
test eax, eax
jne 0x4a0124
mov eax, 0x4a0354
call fcn.0049fe74
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4a013e
mov eax, 0x4a036c
call fcn.0049fe74
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne 0x4a0157
mov eax, 0x4a0388
call fcn.0049fe74
push 0x1f02
call dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4a0175
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
call fcn.0040b9c4
jmp 0x4a0196
mov bl, 1
call dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x4a0196
push esi
call dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404c58
lea eax, [ebp - 0x40]
call fcn.00404a60
push 0x1f00
call dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4a01b4
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x38]
call fcn.0040b9c4
jmp 0x4a01e1
mov bl, 1
call dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x4a01e1
push esi
call dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x40]
call fcn.00404c58
call fcn.00404480
call fcn.00404480
call fcn.00404480
jmp 0x4a0279
xor bl, 1
mov byte [ebp - 9], bl
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
call fcn.00404ab4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
call fcn.00404ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0228
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 0
je 0x4a0220
mov eax, dword [ebp - 0x30]
push eax
call dword [ebp - 0x28]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a029b
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00404a84
ret