Function at 0x408000
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0xec]
push ecx
sub esp, 0x1b8
call fcn.004015c0
mov esi, esp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x1e0
mov dword [esp + 0x18], 0x280
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x86000000
mov dword [esp + 8], str.dummy
mov dword [esp + 4], str.STATIC
mov dword [esp], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esp, esi
mov dword [ebp - 0x124], eax
mov dword [esi], eax
call dword [sym.imp.USER32.dll_GetDC]
lea edx, [ebp - 0xe4]
mov ecx, 8
mov esp, esi
mov edi, edx
mov dword [ebp - 0x10c], eax
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, 0x818
mov dword [ebp - 0xec], 0x10028
mov dword [ebp - 0xe8], 0x25
mov byte [ebp - 0xe3], 0x20
mov byte [ebp - 0xdc], 8
mov word [ebp - 0xd5], ax
mov dword [esi + 4], ebx
mov edi, dword [ebp - 0x10c]
mov dword [esi], edi
call dword [sym.imp.GDI32.dll_ChoosePixelFormat]
mov dword [esi + 8], ebx
mov esp, esi
mov dword [esi], edi
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_SetPixelFormat]
mov dword [esi], edi
mov esp, esi
call dword [sym.imp.OPENGL32.DLL_wglCreateContext]
mov esp, esi
mov dword [ebp - 0x128], eax
mov dword [esi + 4], eax
mov eax, dword [sym.imp.OPENGL32.DLL_wglMakeCurrent]
mov dword [esi], edi
lea edi, [ebp - 0x9c]
mov dword [ebp - 0x12c], eax
call eax
mov ebx, dword [sym.imp.OPENGL32.DLL_wglGetProcAddress]
mov esp, esi
mov dword [esi], str.wglGetExtensionsStringARB
call ebx
mov dword [ebp - 0x114], esi
mov esp, esi
mov dword [ebp - 0x118], eax
mov dword [esi], str.wglGetPixelFormatAttribivARB
call ebx
mov esp, esi
mov ecx, 0x21
mov esi, 0x409020
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x110], eax
mov eax, 0x90
mov dword [ebp - 0x104], 0x2000
call fcn.004024a0
mov esi, dword [ebp - 0x114]
sub esi, eax
mov eax, 0x1f01
mov dword [ebp - 0xf6], 0x46474e30
mov esp, esi
mov byte [ebp - 0xf2], 0
lea ebx, [esp + 0x8f]
mov byte [ebp - 0xed], 0
mov dword [ebp - 0xfa], 0x554358
mov edi, ebx
and ebx, 0xfffffffc
shr edi, 2
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0xf1], 0x63723066
lea esi, [ebp - 0xc4]
mov dword [ebp - 0xc4], str.Renderer_:__s____d___n
mov dword [ebp - 0xbc], str.Vendor___:__s____d___n
mov dword [ebp - 0xb8], 0x1f00
mov dword [ebp - 0xb4], str.Version__:__s____d___n_n
mov dword [ebp - 0xb0], 0x1f02
mov dword [ebp - 0xac], str.Shading_Language_Version_:__s____d___n_n
mov dword [ebp - 0xa8], 0x8b8c
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x11c], edi
mov dword [esp], eax
call dword [sym.imp.OPENGL32.DLL_glGetString]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x4082bd
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add edi, 1
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x4082bd
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp + 4], edi
add eax, 1
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call fcn.004014f0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov eax, dword [esi + 0xc]
add esi, 8
test eax, eax
jne 0x40822f
lea eax, [ebp - 0x100]
mov edi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x120]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x104]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov esi, dword [ebp - 0x10c]
mov dword [esp], esi
mov eax, dword [ebp - 0x110]
call eax
mov eax, dword [ebp - 0x100]
sub esp, 0x18
mov dword [esp], str.Total_pixel_formats__d_n
mov dword [esp + 4], eax
call fcn.004014f0
mov dword [esp], str._n______w_b_a_p_n_s_s_o_u_g_o_d_s_t____________________________________________________a______n______i_m_c_a_s_l_w_v_n_d_g_b_t_y________________________________ac__________________u____n_n__fmt_n_p_c_l_p_y_p_l_l_i_l_f_e_p__cb___r__g__b__a___a__r__g__b__cm__r__g__b__a__d_s_x_b__s_n_____________________________________________________________________________________________n
call fcn.004014f0
mov dword [ebp - 0x10c], esi
mov dword [esp], esi
call dword [sym.imp.GDI32.dll_GetPixelFormat]
lea edx, [ebp - 0x9c]
sub esp, 4
mov esi, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0x21
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
mov eax, dword [ebp - 0x110]
call eax
mov eax, dword [edi*4 + 0x80]
sub esp, 0x18
mov dword [esp + 0x88], eax
mov eax, dword [edi*4 + 0x7c]
mov dword [esp + 0x84], eax
mov eax, dword [edi*4 + 0x78]
mov dword [esp + 0x80], eax
mov eax, dword [edi*4 + 0x74]
mov dword [esp + 0x7c], eax
mov eax, dword [edi*4 + 0x70]
mov dword [esp + 0x78], eax
mov eax, dword [edi*4 + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [edi*4 + 0x68]
mov dword [esp + 0x70], eax
mov eax, dword [edi*4 + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [edi*4 + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [edi*4 + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [edi*4 + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [edi*4 + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [edi*4 + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [edi*4 + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [edi*4 + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [edi*4 + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [edi*4 + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [edi*4 + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [edi*4 + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [edi*4 + 0x34]
sar eax, 2
and eax, 3
movsx eax, byte [ebp + eax - 0xf1]
mov dword [esp + 0x3c], eax
mov eax, dword [edi*4 + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [edi*4 + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [edi*4 + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [edi*4 + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [edi*4 + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [edi*4 + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [edi*4 + 0x18]
and eax, 3
movsx eax, byte [ebp + eax - 0xfa]
mov dword [esp + 0x20], eax
mov eax, dword [edi*4 + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [edi*4 + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi*4 + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [edi*4 + 8]
and eax, 3
movsx eax, byte [ebp + eax - 0xf6]
mov dword [esp + 0x10], eax
mov eax, dword [edi*4 + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edi*4]
mov edi, 1
mov dword [esp + 4], esi
mov dword [esp], str.0x_03x___2x__2x__2c__2x__2x__2x__2c__2x__2x__2x__2x__2x__2x__2c_3d__3d_3d_3d_3d__3d_3d_3d_3d___2d__2d__2d__2d__2d__2d__d__d__d__2d_n
mov dword [esp + 8], eax
call fcn.004014f0
mov eax, dword [ebp - 0x100]
test eax, eax
jle 0x4086b5
nop
cmp edi, esi
je 0x4088b0
lea eax, [ebp - 0x9c]
mov dword [esp + 4], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x21
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x10c]
mov dword [esp], eax
mov eax, dword [ebp - 0x110]
call eax
mov eax, dword [ebx + 0x80]
sub esp, 0x18
mov dword [esp + 0x88], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x74]
mov dword [esp + 0x7c], eax
mov eax, dword [ebx + 0x70]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x74], eax
mov eax, dword [ebx + 0x68]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 0x58]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x34]
sar eax, 2
and eax, 3
movsx eax, byte [ebp + eax - 0xf1]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x18]
and eax, 3
movsx eax, byte [ebp + eax - 0xfa]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
and eax, 3
movsx eax, byte [ebp + eax - 0xf6]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 4], edi
add edi, 1
mov dword [esp], str.0x_03x___2x__2x__2c__2x__2x__2x__2c__2x__2x__2x__2x__2x__2x__2c_3d__3d_3d_3d_3d__3d_3d_3d_3d___2d__2d__2d__2d__2d__2d__d__d__d__2d_n
mov dword [esp + 8], eax
call fcn.004014f0
mov eax, dword [ebp - 0x100]
cmp edi, eax
jle 0x408540
mov dword [esp], 0x40a304
mov ebx, 4
call fcn.004014f0
mov dword [esp], 0x1f03
call dword [sym.imp.OPENGL32.DLL_glGetString]
mov edi, eax
mov eax, dword [ebp - 0x10c]
sub esp, 4
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
call eax
sub esp, 4
mov dword [ebp - 0x110], eax
test edi, edi
je 0x408701
mov dword [esp], edi
call sub.msvcrt.dll_strlen
lea ebx, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], ebx
mov esi, 4
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp - 0x110]
sub esp, 0xc
test eax, eax
je 0x40873b
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea esi, [eax + 1]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov esi, eax
test ebx, ebx
je 0x408847
mov dword [esp + 4], edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp], ebx
call edi
push eax
push eax
test esi, esi
je 0x40884b
mov eax, dword [ebp - 0x110]
mov dword [esp], esi
mov dword [esp + 4], eax
call edi
push eax
push eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x12c]
call eax
push eax
push eax
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.OPENGL32.DLL_wglDeleteContext]
push eax
mov eax, dword [ebp - 0x10c]
mov dword [esp + 4], eax
mov edi, dword [ebp - 0x124]
mov dword [esp], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push eax
push eax
mov dword [esp], edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push edx
mov esp, dword [ebp - 0x114]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
add edi, 1
mov dword [esp + 0xc], esi
add eax, 1
mov dword [esp + 4], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov dword [esp], str._s____d___n_s____d___n
call fcn.004014f0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp + 8], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 4], ecx
mov dword [esp], eax
call ebx
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 0xc
jmp 0x408899
test eax, eax
jne 0x4088c0
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], eax
mov eax, dword [ebp - 0x12c]
call eax
push edx
push edx
mov eax, dword [ebp - 0x128]
mov dword [esp], eax
call dword [sym.imp.OPENGL32.DLL_wglDeleteContext]
push ecx
mov eax, dword [ebp - 0x10c]
mov dword [esp + 4], eax
mov esi, dword [ebp - 0x124]
mov dword [esp], esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
push ebx
mov dword [esp], esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push esi
mov esp, dword [ebp - 0x114]
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add edi, 1
cmp edi, eax
jle 0x408540
jmp 0x4086b5
mov eax, dword [ebp - 0x110]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push edi
jmp 0x40884b