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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x4975a0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push ebx
push esi
push edi
mov eax, dword [0x4c5d0c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ebx, ecx
fldz
push 0
sub esp, 0x20
fstp qword [esp + 0x18]
fld1
lea ecx, [esp + 0x68]
fst qword [esp + 0x10]
fst qword [esp + 8]
fstp qword [esp]
call fcn.00416610
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + esi + 8]
mov edx, dword [edx + 4]
lea ecx, [ecx + esi + 8]
lea eax, [esp + 0x2c]
push eax
call edx
push 0xfffff
call dword [sym.imp.OPENGL32.dll_glPushAttrib]
cmp dword [esi + 0x10], 3
jne 0x413347
lea edi, [ebx - 0x484]
test edi, edi
jne 0x413215
mov dword [esp + 0x14], edi
jmp 0x413229
mov eax, dword [ebx - 0x47c]
mov ecx, dword [eax + 4]
lea edx, [ecx + ebx - 0x47c]
mov dword [esp + 0x14], edx
mov ecx, dword [esi + 0x38]
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
add ecx, 0x14
push edx
call fcn.00433390
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call fcn.00433350
add esp, 0x18
cmp dword [esp + 0x14], 0
setne al
mov byte [esp + 0x1b], al
test al, al
jne 0x41329f
test edi, edi
jne 0x413284
xor eax, eax
jmp 0x413294
mov eax, dword [ebx - 0x47c]
mov ecx, dword [eax + 4]
lea eax, [ecx + ebx - 0x47c]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 8]
call eax
push 0xbe2
call dword [sym.imp.OPENGL32.dll_glEnable]
push 0x300
push 0
call dword [sym.imp.OPENGL32.dll_glBlendFunc]
mov ecx, dword [ebx - 0x47c]
mov edx, dword [ecx + 4]
mov eax, dword [ebx - 0x47c]
lea ecx, [edx + ebx - 0x47c]
mov edx, dword [eax + 4]
mov eax, dword [ecx]
lea edi, [edx + ebx - 0x47c]
mov edx, dword [eax + 8]
push 1
call edx
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
mov eax, dword [edi]
mov edx, dword [eax + 4]
sub esp, 8
mov ecx, edi
fstp qword [esp]
call edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
sub esp, 8
lea ecx, [esp + 0x78]
fstp qword [esp]
call fcn.00414660
mov eax, dword [0x4c8bb8]
push eax
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x148], 0
call fcn.00413cc0
lea ecx, [esp + 0x98]
mov dword [esp + 0x140], 0xffffffff
call fcn.00420350
call dword [sym.imp.OPENGL32.dll_glPushMatrix]
cmp dword [esi + 0x10], 1
jne 0x413390
push 0xc11
call dword [sym.imp.OPENGL32.dll_glEnable]
fld qword [esi + 0x30]
call fcn.00470580
fld qword [esi + 0x28]
push eax
call fcn.00470580
fld qword [esi + 0x18]
fadd qword [esp + 0x38]
push eax
call fcn.00470580
fld qword [esi + 0x20]
fadd qword [esp + 0x34]
push eax
call fcn.00470580
push eax
call dword [sym.imp.OPENGL32.dll_glScissor]
fld qword [esp + 0x3c]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [esp + 0x4c]
fstp qword [esp + 8]
fld qword [esp + 0x44]
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glTranslated]
fldz
fcom qword [esi + 0x78]
fnstsw ax
test ah, 0x44
jp 0x4133d6
fcom qword [esi + 0x80]
fnstsw ax
test ah, 0x44
jp 0x4133d6
fcom qword [esi + 0x88]
fnstsw ax
test ah, 0x44
jnp 0x4133fd
fstp st(0)
sub esp, 0x18
fld qword [esi + 0x88]
fstp qword [esp + 0x10]
fld qword [esi + 0x80]
fstp qword [esp + 8]
fld qword [esi + 0x78]
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glScaled]
fldz
fcomp qword [esi + 0x58]
fnstsw ax
test ah, 0x44
jnp 0x41342b
fld qword [esi + 0x70]
sub esp, 0x20
fstp qword [esp + 0x18]
fld qword [esi + 0x68]
fstp qword [esp + 0x10]
fld qword [esi + 0x60]
fstp qword [esp + 8]
fld qword [esi + 0x58]
fstp qword [esp]
call dword [sym.imp.OPENGL32.dll_glRotated]
cmp dword [esi + 0x10], 3
jne 0x413491
mov edi, dword [sym.imp.OPENGL32.dll_glBlendFunc]
push 1
push 1
call edi
mov eax, dword [esi + 0x38]
mov edx, dword [eax + 8]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax + 8]
mov edx, dword [edx + 0x14]
lea ecx, [ecx + eax + 8]
mov eax, dword [0x4c8bb8]
push eax
call edx
push 0x305
push 0x304
call edi
cmp byte [esp + 0x1b], 0
jne 0x413491
lea eax, [ebx - 0x484]
test eax, eax
je 0x413486
mov ecx, dword [ebx - 0x47c]
mov edx, dword [ecx + 4]
lea eax, [edx + ebx - 0x47c]
mov ecx, dword [esi + 0x38]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esi + 0x4c]
sub ecx, dword [esi + 0x48]
test ecx, 0xfffffffc
je 0x413506
mov edx, dword [esi + 0x4c]
sub edx, dword [esi + 0x48]
xor edi, edi
sar edx, 2
test edx, edx
jbe 0x413506
mov edi, edi
lea eax, [ebx - 0x484]
test eax, eax
jne 0x4134c0
mov dword [esp + 0x14], eax
jmp 0x4134d4
mov eax, dword [ebx - 0x47c]
mov ecx, dword [eax + 4]
lea edx, [ecx + ebx - 0x47c]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x48]
sar eax, 2
cmp edi, eax
jb 0x4134e6
call fcn.004720c6
mov ecx, dword [esi + 0x48]
mov ecx, dword [ecx + edi*4]
mov edx, dword [ecx]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
push eax
call edx
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x48]
inc edi
sar eax, 2
cmp edi, eax
jb 0x4134b0
cmp dword [esi + 0x10], 1
jne 0x413517
push 0xc11
call dword [sym.imp.OPENGL32.dll_glDisable]
cmp dword [esi + 0x10], 3
jne 0x41352d
push 0x303
push 0x302
call dword [sym.imp.OPENGL32.dll_glBlendFunc]
call dword [sym.imp.OPENGL32.dll_glPopMatrix]
call dword [sym.imp.OPENGL32.dll_glPopAttrib]
lea eax, [ebx - 0x484]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4