Function at 0x46e4c0
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 0x46e4e3
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x46e4ee
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x46e878
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, 0x46e890
call fcn.00410c08
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46e856
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x46e5cd
mov edx, 0x8000
mov eax, 0x46e8a8
call fcn.00410c08
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x46e5cd
cmp dword [ebp - 0x14], 0
je 0x46e5cd
push 0x46e8b4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x18], eax
push 0x46e8c0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x46e8cc
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
push 0x46e8dc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
push 0x46e8f0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x28], eax
push 0x46e904
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x18], 0
je 0x46e5f1
cmp dword [ebp - 0x1c], 0
je 0x46e5f1
cmp dword [ebp - 0x20], 0
je 0x46e5f1
cmp dword [ebp - 0x24], 0
je 0x46e5f1
cmp dword [ebp - 0x28], 0
je 0x46e5f1
cmp dword [ebp - 0x2c], 0
jne 0x46e624
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x50c078]
mov edx, dword [edx]
call fcn.00404b04
mov eax, dword [ebp - 4]
mov edx, dword [0x50c078]
mov edx, dword [edx]
call fcn.00404b04
call fcn.004044d0
jmp 0x46e85d
call fcn.0046abe4
mov word [ebp - 0x42], ax
xor eax, eax
push ebp
push 0x46e823
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, 0x133f
call fcn.00403374
xor eax, eax
mov dword [ebp - 0x30], eax
mov byte [ebp - 9], 0
xor ebx, ebx
test esi, esi
jne 0x46e686
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x50c078]
mov edx, dword [edx]
call fcn.00404b04
mov eax, dword [ebp - 4]
mov edx, dword [0x50c078]
mov edx, dword [edx]
call fcn.00404b04
call fcn.004044d0
call fcn.004044d0
jmp 0x46e85d
lea eax, [ebp - 0x6a]
xor ecx, ecx
mov edx, 0x28
call fcn.00403608
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 0x46e805
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 0x46e6ec
mov eax, 0x46e91c
call fcn.0046e458
lea eax, [ebp - 0x6a]
push eax
push esi
mov eax, dword [ebp - 0x34]
push eax
call sub.gdi32.dll_SetPixelFormat
test eax, eax
jne 0x46e708
mov eax, 0x46e938
call fcn.0046e458
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x46e722
mov eax, 0x46e950
call fcn.0046e458
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x2c]
test eax, eax
jne 0x46e73b
mov eax, 0x46e96c
call fcn.0046e458
push 0x1f02
call dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x46e759
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
call fcn.0040bb54
jmp 0x46e77a
mov bl, 1
call dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x46e77a
push esi
call dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404ca8
lea eax, [ebp - 0x40]
call fcn.00404ab0
push 0x1f00
call dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x46e798
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x38]
call fcn.0040bb54
jmp 0x46e7c5
mov bl, 1
call dword [ebp - 0x1c]
mov esi, eax
test esi, esi
je 0x46e7c5
push esi
call dword [ebp - 0x20]
mov edx, eax
lea eax, [ebp - 0x40]
call fcn.00404ca8
call fcn.004044d0
call fcn.004044d0
call fcn.004044d0
jmp 0x46e85d
xor bl, 1
mov byte [ebp - 9], bl
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
call fcn.00404b04
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
call fcn.00404b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e80c
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 0
je 0x46e804
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 0x46e87f
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00404ad4
ret