Function at 0x402130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, dword [sym.imp.OPENGL32.dll_glDisable]
push edi
mov edi, ecx
push 0xde1
call esi
push 0xb44
call esi
fld dword [edi + 0x154]
fmul qword [0x40a358]
xor esi, esi
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0x3f800000
fld st(0)
fchs
fstp dword [esp + 0x54]
fld dword [edi + 0x154]
fmul qword [0x40a3a0]
mov dword [esp + 0x6c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
fst qword [esp + 0x24]
fchs
fst dword [esp + 0x1c]
fstp dword [esp + 0x58]
fld dword [edi + 0x154]
fchs
fst dword [esp + 0x14]
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
fstp dword [esp + 0x60]
fld qword [esp + 0x24]
fstp dword [esp + 0x70]
fld dword [edi + 0x154]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0x88]
mov edx, ecx
mov dword [esp + 0x68], ecx
fstp dword [esp + 0x80]
test eax, eax
mov dword [esp + 0x74], edx
jle 0x402451
xor ebx, ebx
mov eax, dword [edi + 0x84]
lea edx, [esp + 0x38]
lea ecx, [ebx + eax + 0x10]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.00409190
mov eax, dword [edi + 0x84]
mov ebp, dword [ebx + eax + 0x2c]
dec ebp
cmp ebp, 1
jge 0x40222a
mov ebp, 0x18f
push 5
call dword [sym.imp.OPENGL32.dll_glBegin]
mov ecx, dword [edi + 0x84]
lea edx, [ebp + ebp*4]
push 0x3f800000
mov ecx, dword [ebx + ecx + 0x24]
lea eax, [ebp + edx*2]
mov edx, dword [ecx + eax*8 + 0x54]
lea eax, [ecx + eax*8]
push edx
mov ecx, dword [eax + 0x50]
mov edx, dword [eax + 0x4c]
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glColor4f]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x54]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00409360
mov edx, dword [edi + 0x84]
sub esp, 0xc
mov ecx, esp
lea eax, [ebx + edx + 4]
mov edx, dword [ebx + edx + 4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x38]
call fcn.004094f0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ebp, dword [sym.imp.OPENGL32.dll_glVertex3f]
push ecx
push edx
push eax
call ebp
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x60]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.00409360
mov eax, dword [edi + 0x84]
sub esp, 0xc
mov edx, esp
lea ecx, [ebx + eax + 4]
mov eax, dword [ebx + eax + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x38]
call fcn.004094f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call ebp
lea edx, [esp + 0x2c]
lea eax, [esp + 0x78]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.00409360
mov ecx, dword [edi + 0x84]
sub esp, 0xc
mov eax, esp
lea edx, [ebx + ecx + 4]
mov ecx, dword [ebx + ecx + 4]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
lea ecx, [esp + 0x38]
mov dword [eax + 8], edx
call fcn.004094f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call ebp
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x6c]
push eax
push ecx
lea ecx, [esp + 0x4c]
call fcn.00409360
mov edx, dword [edi + 0x84]
sub esp, 0xc
mov ecx, esp
lea eax, [ebx + edx + 4]
mov edx, dword [ebx + edx + 4]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [esp + 0x38]
call fcn.004094f0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call ebp
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x54]
push ecx
push edx
lea ecx, [esp + 0x4c]
call fcn.00409360
mov eax, dword [edi + 0x84]
sub esp, 0xc
mov edx, esp
lea ecx, [ebx + eax + 4]
mov eax, dword [ebx + eax + 4]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea ecx, [esp + 0x38]
call fcn.004094f0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call ebp
lea edx, [esp + 0x2c]
lea eax, [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x4c]
call fcn.00409360
mov ecx, dword [edi + 0x84]
sub esp, 0xc
mov eax, esp
lea edx, [ebx + ecx + 4]
mov ecx, dword [ebx + ecx + 4]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x38]
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
call fcn.004094f0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
mov edx, dword [esp + 0x30]
push ecx
push edx
call ebp
call dword [sym.imp.OPENGL32.dll_glEnd]
mov eax, dword [edi + 0x88]
inc esi
add ebx, 0x70
cmp esi, eax
jl 0x4021fc
push 0xde1
call dword [sym.imp.OPENGL32.dll_glEnable]
mov eax, dword [edi + 0x88]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
jle 0x40266c
mov eax, dword [edi + 0x84]
push 0xb44
cmp dword [ebx + eax + 0x64], 3
jge 0x40248a
call dword [sym.imp.OPENGL32.dll_glDisable]
jmp 0x402490
call dword [sym.imp.OPENGL32.dll_glEnable]
mov ecx, dword [edi + 0x84]
xor esi, esi
mov dword [esp + 0x14], esi
lea eax, [ebx + ecx]
mov ecx, dword [ebx + ecx + 0x64]
test ecx, ecx
jle 0x402652
mov ebp, dword [eax + 0x2c]
mov dword [esp + 0x10], 0
dec ebp
cmp ebp, 1
jge 0x4024c1
mov ebp, 0x18f
cmp ecx, 1
jne 0x4024ca
push 3
jmp 0x4024cc
push 5
call dword [sym.imp.OPENGL32.dll_glBegin]
push 0xde1
call dword [sym.imp.OPENGL32.dll_glEnable]
mov edx, dword [edi + 0x84]
mov eax, 1
mov dword [esp + 0x18], eax
cmp dword [ebx + edx + 0x28], eax
jle 0x40262a
lea eax, [esi + 1]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [esp + 0x24], eax
lea eax, [esi + esi*2]
shl eax, 2
mov dword [esp + 0x20], eax
push 0
push 0
call dword [sym.imp.OPENGL32.dll_glTexCoord2f]
mov ecx, dword [edi + 0x84]
lea eax, [ebp + ebp*4]
fld dword [esp + 0x10]
mov edx, dword [ebx + ecx + 0x24]
lea esi, [ebp + eax*2]
shl esi, 3
push 0x3f800000
push ecx
fmul dword [edx + esi + 0x54]
lea eax, [edx + esi]
fstp dword [esp]
fld dword [esp + 0x18]
fmul dword [eax + 0x50]
push ecx
fstp dword [esp]
fld dword [esp + 0x1c]
fmul dword [eax + 0x4c]
push ecx
fstp dword [esp]
call dword [sym.imp.OPENGL32.dll_glColor4f]
mov eax, dword [edi + 0x84]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + eax + 0x24]
add ecx, eax
add edx, eax
add ecx, esi
mov eax, dword [edx + esi]
mov edx, dword [ecx + 8]
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.OPENGL32.dll_glVertex3f]
mov ecx, dword [edi + 0x84]
cmp dword [ebx + ecx + 0x64], 1
jle 0x4025d6
push 0x3f800000
push 0
call dword [sym.imp.OPENGL32.dll_glTexCoord2f]
mov edx, dword [edi + 0x84]
mov eax, dword [esp + 0x14]
inc eax
lea ecx, [ebx + edx]
cdq
idiv dword [ecx + 0x64]
mov ecx, dword [ecx + 0x24]
lea eax, [edx + edx*2]
lea edx, [edx + edx*2 + 3]
lea eax, [ecx + eax*4]
lea ecx, [ecx + edx*4]
add eax, esi
mov edx, dword [ecx + esi]
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.OPENGL32.dll_glVertex3f]
dec ebp
cmp ebp, 1
jge 0x4025e1
mov ebp, 0x18f
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jne 0x4025f2
fld dword [0x40a398]
jmp 0x4025f6
fld dword [esp + 0x10]
mov eax, dword [edi + 0x84]
inc ecx
mov eax, dword [ebx + eax + 0x28]
cmp ecx, eax
lea edx, [eax - 1]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
fdivr dword [0x40a398]
fsubr st(1)
fstp dword [esp + 0x10]
fstp st(0)
jl 0x40250d
mov esi, dword [esp + 0x14]
call dword [sym.imp.OPENGL32.dll_glEnd]
mov eax, dword [edi + 0x84]
mov ecx, ebx
cmp dword [eax + ecx + 0x64], 2
je 0x402652
mov ecx, dword [eax + ebx + 0x64]
add eax, ebx
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x4024ab
mov eax, dword [esp + 0x1c]
mov ecx, dword [edi + 0x88]
inc eax
add ebx, 0x70
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x402470
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret