Function at 0x10043806
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x101282a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x64]
push str.wglGetProcAddress
mov dword [ebp - 0x74], eax
call fcn.10001157
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmovae eax, dword [ebp - 0x64]
push eax
push ebx
call esi
push 0
push 1
lea ecx, [ebp - 0x64]
mov edi, eax
call fcn.100025f0
push str.wglCreateContext
lea ecx, [ebp - 0x1c]
call fcn.10001157
test edi, edi
je 0x10043878
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x10043887
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ebx
call esi
mov ecx, dword [ebp - 0x6c]
push 0
push 1
mov dword [ecx], eax
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push str.wglDeleteContext
lea ecx, [ebp - 0x1c]
call fcn.10001157
test edi, edi
je 0x100438bb
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x100438ca
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ebx
call esi
mov ecx, dword [ebp - 0x6c]
push 0
push 1
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push str.wglMakeCurrent
lea ecx, [ebp - 0x1c]
call fcn.10001157
test edi, edi
je 0x100438ff
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
test eax, eax
jne 0x1004390e
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ebx
call esi
mov ecx, dword [ebp - 0x6c]
push 0
push 1
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push str.wglGetExtensionsStringEXT
lea ecx, [ebp - 0x1c]
call fcn.10001157
test edi, edi
je 0x10043946
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x10043958
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push ebx
call esi
mov dword [ebp - 0x68], eax
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push str.wglGetExtensionsStringARB
lea ecx, [ebp - 0x34]
call fcn.10001157
test edi, edi
je 0x1004398a
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call edi
mov dword [ebp - 0x70], eax
test eax, eax
jne 0x1004399c
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push ebx
call esi
mov dword [ebp - 0x70], eax
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.100025f0
push 0x100e8268
lea ecx, [ebp - 0x4c]
call fcn.10001157
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x100439c0
call eax
jmp 0x100439d1
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x100439ea
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x100439ea
push ecx
call eax
mov esi, eax
push esi
call fcn.100027bd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.100026c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.wglCreateContextAttribsARB
lea ecx, [ebp - 0x34]
call fcn.10001157
push str.WGL_ARB_create_context
lea ecx, [ebp - 0x1c]
call fcn.10001157
push dword [ebp - 0xc]
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.1008be19
cmp eax, 0xffffffff
je 0x10043a51
test edi, edi
je 0x10043a3f
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call edi
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x10043a51
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push ebx
call esi
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
push 0
push 1
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.100025f0
push str.wglGetPixelFormatAttribivARB
lea ecx, [ebp - 0x34]
call fcn.10001157
push str.WGL_ARB_pixel_format
lea ecx, [ebp - 0x1c]
call fcn.10001157
push dword [ebp - 0xc]
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.1008be19
cmp eax, 0xffffffff
je 0x10043ad9
test edi, edi
je 0x10043ac7
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call edi
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x10043ad9
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push ebx
call esi
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x68]
push 0
push 1
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.100025f0
push str.wglSwapIntervalEXT
lea ecx, [ebp - 0x34]
call fcn.10001157
push str.WGL_EXT_swap_control
lea ecx, [ebp - 0x1c]
call fcn.10001157
push dword [ebp - 0xc]
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.1008be19
cmp eax, 0xffffffff
je 0x10043b61
test edi, edi
je 0x10043b4f
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call edi
mov dword [ebp - 0x68], eax
test eax, eax
jne 0x10043b61
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push ebx
call esi
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x6c]
xor ebx, ebx
mov eax, dword [ebp - 0x68]
push ebx
push 1
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x1c]
call fcn.100025f0
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.100025f0
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.100025f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100cdf13
mov esp, ebp
pop ebp
ret 8