Function at 0x1002fb70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10042fd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101f1b38]
push ebx
push esi
push edi
push eax
push 0xea60
push 3
push 0
push 0x10116449
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push str..DataSkyNull.bmp
push 0x1003ba04
lea edx, [ebp - 0x108]
call fcn.10003590
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x1002fbfb
push 0
push str.Error
push str.Cannot_find_Null.bmp
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea edx, [ebp - 0x108]
push edx
call fcn.100368d4
mov dword [0x101df330], eax
mov edi, 1
mov esi, 0x101df030
mov dword [ebp - 0x11c], 0x1e
jmp 0x1002fc27
mov eax, dword [0x101df330]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push edi
mov dword [esi + 0x10], eax
push str..DataSkyWorld_dBack.bmp
lea edx, [ebp - 0x108]
mov dword [esi + 0x14], eax
call fcn.10003590
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1002fc74
lea ecx, [ebp - 0x108]
push ecx
call fcn.100368d4
mov dword [esi], eax
push edi
push str..DataSkyWorld_dBottom.bmp
lea edx, [ebp - 0x108]
call fcn.10003590
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
call ebx
cmp eax, 0xffffffff
je 0x1002fcb1
lea eax, [ebp - 0x108]
push eax
call fcn.100368d4
mov dword [esi + 4], eax
push edi
push str..DataSkyWorld_dFront.bmp
lea edx, [ebp - 0x108]
call fcn.10003590
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x1002fcee
lea edx, [ebp - 0x108]
push edx
call fcn.100368d4
mov dword [esi + 8], eax
push edi
push str..DataSkyWorld_dLeft.bmp
lea edx, [ebp - 0x108]
call fcn.10003590
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call ebx
cmp eax, 0xffffffff
je 0x1002fd2b
lea ecx, [ebp - 0x108]
push ecx
call fcn.100368d4
mov dword [esi + 0xc], eax
push edi
push str..DataSkyWorld_dRight.bmp
lea edx, [ebp - 0x108]
call fcn.10003590
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
call ebx
cmp eax, 0xffffffff
je 0x1002fd68
lea eax, [ebp - 0x108]
push eax
call fcn.100368d4
mov dword [esi + 0x10], eax
push edi
push str..DataSkyWorld_dTop.bmp
lea edx, [ebp - 0x108]
call fcn.10003590
add esp, 8
push 0
push 0
push 3
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x1002fda5
lea edx, [ebp - 0x108]
push edx
call fcn.100368d4
mov dword [esi + 0x14], eax
inc edi
add esi, 0x18
dec dword [ebp - 0x11c]
jne 0x1002fc22
mov ebx, dword [sym.imp.OPENGL32.dll_glTexParameteri]
xor esi, esi
lea ecx, [ecx]
mov dword [ebp - 0x11c], 6
lea ebx, [ebx]
lea edi, [esi + 0x101ded30]
push edi
push 1
call dword [sym.imp.OPENGL32.dll_glGenTextures]
mov eax, dword [edi]
push eax
push 0xde1
call dword [sym.imp.OPENGL32.dll_glBindTexture]
push 1
push 0xcf5
call dword [sym.imp.OPENGL32.dll_glPixelStorei]
mov eax, dword [esi + 0x101df030]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push 0x1401
push 0x1907
push 0
push edx
push eax
push 3
push 0
push 0xde1
call dword [sym.imp.OPENGL32.dll_glTexImage2D]
push 0x2600
push 0x2801
push 0xde1
call ebx
push 0x2600
push 0x2800
push 0xde1
call ebx
add esi, 4
dec dword [ebp - 0x11c]
jne 0x1002fdd0
cmp esi, 0x2d0
jl 0x1002fdc0
cmp dword [0x101f1b3c], 0
fld1
fst dword [0x101dbb1c]
fst dword [0x101dbb20]
fstp dword [0x101dbb24]
je 0x1002ff1f
push 0x1002faf0
push 0x1388
push 2
push 0
push 0x10116449
mov dword [0x101ded2c], 2
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x10e]
mov dword [ebp - 0x11c], edx
movzx eax, word [ebp - 0x110]
fild dword [ebp - 0x11c]
and eax, 0x80000001
fdiv qword [0x1003d668]
fstp dword [ebp - 0x11c]
jns 0x1002feed
dec eax
or eax, 0xfffffffe
inc eax
jne 0x1002fef7
fld dword [ebp - 0x11c]
jmp 0x1002ff0d
fld dword [ebp - 0x11c]
fld1
fsubrp st(1)
fstp dword [ebp - 0x11c]
fld dword [ebp - 0x11c]
fst dword [0x101dbb1c]
fst dword [0x101dbb20]
fstp dword [0x101dbb24]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov dword [0x101ded28], 1
pop ebx
call fcn.10036e30
mov esp, ebp
pop ebp
ret