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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c8190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x338]
test al, al
jne 0x43cc20
mov ecx, dword [esi + 0xb74]
mov eax, dword [esi + 0xb88]
imul eax, ecx
test eax, eax
je 0x43c980
push 0xde1
call dword [sym.imp.opengl32.dll_glEnable]
mov eax, dword [esi + 0xbe8]
push eax
push 0xde1
call dword [sym.imp.opengl32.dll_glBindTexture]
xor ebp, ebp
mov dword [esp + 0x64], 0x5e2984
mov dword [esp + 0x68], ebp
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], ebp
mov ecx, dword [esi + 0xb74]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x88], ebp
call fcn.004e5b10
mov edi, dword [esi + 0xb74]
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0xb70]
mov ebx, edi
dec edi
mov eax, edx
test ebx, ebx
je 0x43c4dc
lea edx, [edi + 1]
mov edi, dword [ecx]
add ecx, 8
mov dword [eax], edi
mov edi, dword [ecx - 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x43c4c5
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0xb74]
mov eax, 3
fld qword [0x5e2798]
cmp ecx, eax
jle 0x43c52a
jmp 0x43c4f7
mov edx, dword [esp + 0x68]
mov ecx, dword [esi + 0xb70]
add eax, 2
fld qword [ecx + eax*8 - 0x20]
fsub qword [ecx + eax*8 - 0x18]
faddp st(1)
fld st(0)
fadd qword [edx + eax*8 - 0x10]
fstp qword [edx + eax*8 - 0x10]
mov ecx, dword [esp + 0x68]
fld st(0)
fadd qword [ecx + eax*8 - 0x18]
fstp qword [ecx + eax*8 - 0x18]
cmp eax, dword [esi + 0xb74]
jl 0x43c4f3
fstp st(0)
mov dword [esp + 0x50], 0x5e2984
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov edx, dword [esi + 0xb88]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x88], 1
call fcn.004e5b10
mov edi, dword [esi + 0xb88]
mov edx, dword [esp + 0x54]
mov ecx, dword [esi + 0xb84]
mov ebx, edi
dec edi
mov eax, edx
test ebx, ebx
je 0x43c591
lea edx, [edi + 1]
mov edi, dword [ecx]
add ecx, 8
mov dword [eax], edi
mov edi, dword [ecx - 4]
mov dword [eax + 4], edi
add eax, 8
dec edx
jne 0x43c57a
mov edx, dword [esp + 0x54]
mov ecx, dword [esi + 0xb88]
mov eax, 3
fld qword [0x5e2798]
cmp ecx, eax
jle 0x43c5df
jmp 0x43c5ac
mov edx, dword [esp + 0x54]
mov ecx, dword [esi + 0xb84]
add eax, 2
fld qword [ecx + eax*8 - 0x20]
fsub qword [ecx + eax*8 - 0x18]
faddp st(1)
fld st(0)
fadd qword [edx + eax*8 - 0x10]
fstp qword [edx + eax*8 - 0x10]
mov ecx, dword [esp + 0x54]
fld st(0)
fadd qword [ecx + eax*8 - 0x18]
fstp qword [ecx + eax*8 - 0x18]
cmp eax, dword [esi + 0xb88]
jl 0x43c5a8
mov eax, dword [esi + 0xb88]
mov dword [esp + 0x18], ebp
cmp eax, ebp
fstp st(0)
jle 0x43c914
xor ebx, ebx
mov eax, dword [esi + 0xb74]
mov dword [esp + 0x14], ebp
cmp eax, ebp
jle 0x43c8f8
lea ebp, [ebx + 8]
push 7
call dword [sym.imp.opengl32.dll_glBegin]
mov eax, dword [esi + 0xb84]
mov ecx, dword [esi + 0xbb0]
mov edx, dword [esi + 0xbb4]
mov dword [esp + 0x1c], ecx
fld qword [eax + ebx]
fld qword [esi + 0xbb0]
lea edi, [eax + ebx]
mov dword [esp + 0x20], edx
call sub.msvcrt.dll__CIfmod
fdiv qword [esp + 0x1c]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 1
je 0x43c660
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
jmp 0x43c675
fld qword [edi]
fld qword [esp + 0x1c]
call sub.msvcrt.dll__CIfmod
fdiv qword [esi + 0xbb0]
fstp qword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea edi, [eax*8]
mov eax, dword [esi + 0xb70]
mov ecx, edi
add ecx, eax
fld qword [ecx]
fdiv qword [esi + 0xbb8]
fsubr qword [0x5e2858]
fld qword [0x5e2858]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x43c6bb
fstp st(0)
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x3ff00000
jmp 0x43c6bf
fstp qword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.opengl32.dll_glTexCoord2d]
mov eax, dword [esp + 0x68]
mov ecx, dword [edi + eax + 4]
mov edx, dword [edi + eax]
mov eax, dword [esp + 0x54]
push ecx
push edx
mov ecx, dword [ebx + eax + 4]
mov edx, dword [ebx + eax]
push ecx
push edx
call dword [sym.imp.opengl32.dll_glVertex2d]
mov eax, dword [esi + 0xb70]
fld qword [eax + edi + 8]
fdiv qword [esi + 0xbb8]
fsubr qword [0x5e2858]
fld qword [0x5e2798]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x43c732
fstp st(0)
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jmp 0x43c736
fstp qword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.opengl32.dll_glTexCoord2d]
mov eax, dword [esp + 0x68]
mov edx, dword [edi + eax + 0xc]
mov eax, dword [edi + eax + 8]
push edx
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [ebx + eax + 4]
mov edx, dword [ebx + eax]
push ecx
push edx
call dword [sym.imp.opengl32.dll_glVertex2d]
mov eax, dword [esi + 0xb84]
mov ecx, dword [esi + 0xbb0]
mov edx, dword [esi + 0xbb4]
mov dword [esp + 0x1c], ecx
fld qword [eax + ebp]
fld qword [esi + 0xbb0]
mov dword [esp + 0x20], edx
call sub.msvcrt.dll__CIfmod
fdiv qword [esp + 0x1c]
fcomp qword [0x5e2858]
fnstsw ax
test ah, 0x41
je 0x43c7d6
mov eax, dword [esi + 0xb84]
lea ebp, [ebx + 8]
fld qword [eax + ebp]
fld qword [esp + 0x1c]
call sub.msvcrt.dll__CIfmod
fdiv qword [esi + 0xbb0]
fst qword [esp + 0x24]
fcomp qword [0x5e2798]
fnstsw ax
test ah, 0x40
je 0x43c7e6
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3ff00000
mov eax, dword [esi + 0xb70]
fld qword [eax + edi + 8]
fdiv qword [esi + 0xbb8]
fsubr qword [0x5e2858]
fld qword [0x5e2798]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x43c81f
fstp st(0)
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
jmp 0x43c823
fstp qword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.opengl32.dll_glTexCoord2d]
mov eax, dword [esp + 0x68]
mov edx, dword [edi + eax + 0xc]
mov eax, dword [edi + eax + 8]
push edx
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [eax + ebp]
push ecx
push edx
call dword [sym.imp.opengl32.dll_glVertex2d]
mov ecx, dword [esi + 0xb70]
mov eax, edi
add eax, ecx
fld qword [eax]
fdiv qword [esi + 0xbb8]
fsubr qword [0x5e2858]
fld qword [0x5e2858]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x43c899
fstp st(0)
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x3ff00000
jmp 0x43c89d
fstp qword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
call dword [sym.imp.opengl32.dll_glTexCoord2d]
mov eax, dword [esp + 0x68]
mov edx, dword [edi + eax + 4]
mov eax, dword [edi + eax]
push edx
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + ebp + 4]
mov edx, dword [eax + ebp]
push ecx
push edx
call dword [sym.imp.opengl32.dll_glVertex2d]
call dword [sym.imp.opengl32.dll_glEnd]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb74]
add eax, 2
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x43c60a
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xb88]
add eax, 2
add ebx, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x43c5f5
push 0xde1
call dword [sym.imp.opengl32.dll_glDisable]
mov esi, 0x5e2984
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x54]
mov byte [esp + 0x80], 2
cmp eax, ebp
je 0x43c941
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x50], 0x5e262c
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x68]
mov dword [esp + 0x80], 3
cmp eax, ebp
je 0x43cc20
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x2e0]
call fcn.004d7b50
fdiv qword [esi + 0xbb0]
call sub.msvcrt.dll__ftol
mov ebx, eax
push 0xde1
add ebx, 2
mov dword [esp + 0x1c], ebx
call dword [sym.imp.opengl32.dll_glEnable]
mov eax, dword [esi + 0xbe8]
push eax
push 0xde1
call dword [sym.imp.opengl32.dll_glBindTexture]
mov edi, dword [sym.imp.opengl32.dll_glVertex2d]
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x14], ebp
jle 0x43caab
mov ebx, dword [sym.imp.opengl32.dll_glTexCoord2d]
push 7
call dword [sym.imp.opengl32.dll_glBegin]
push 0x3ff00000
push 0
push 0
push 0
call ebx
fild dword [esp + 0x14]
push 0
push 0
sub esp, 8
fstp qword [esp + 0x54]
fld qword [esp + 0x54]
fmul qword [esi + 0xbb0]
fstp qword [esp]
call edi
push 0
push 0
push 0
push 0
call ebx
mov ecx, dword [esi + 0xbbc]
mov edx, dword [esi + 0xbb8]
fld qword [esp + 0x44]
fmul qword [esi + 0xbb0]
push ecx
push edx
sub esp, 8
fstp qword [esp]
call edi
push 0
push 0
push 0x3ff00000
push 0
call ebx
inc ebp
mov eax, dword [esi + 0xbbc]
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xbb8]
fild dword [esp + 0x14]
push eax
push ecx
sub esp, 8
fstp qword [esp + 0x54]
fld qword [esp + 0x54]
fmul qword [esi + 0xbb0]
fstp qword [esp]
call edi
push 0x3ff00000
push 0
push 0x3ff00000
push 0
call ebx
fld qword [esp + 0x44]
fmul qword [esi + 0xbb0]
push 0
push 0
sub esp, 8
fstp qword [esp]
call edi
call dword [sym.imp.opengl32.dll_glEnd]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
cmp ebp, eax
jl 0x43c9d6
mov ebx, eax
push 0xde1
call dword [sym.imp.opengl32.dll_glDisable]
mov edx, dword [esi + 0xb98]
xor eax, eax
mov al, byte [esi + 0xb99]
xor ecx, ecx
mov cl, byte [esi + 0xb98]
and eax, 0xff
shr edx, 0x10
and edx, 0xff
push edx
push eax
push ecx
call dword [sym.imp.opengl32.dll_glColor3i]
push 0x41000000
call dword [sym.imp.opengl32.dll_glPointSize]
push 1
call dword [sym.imp.opengl32.dll_glBegin]
test ebx, ebx
mov dword [esp + 0x14], 0
jle 0x43cc1a
mov eax, dword [esi + 0xbd8]
xor ebx, ebx
test eax, eax
jle 0x43cc05
fild dword [esp + 0x14]
fstp qword [esp + 0x44]
mov edx, dword [esi + 0xbd4]
lea eax, [ebx*8]
mov ebp, dword [esi + 0xbd4]
mov ecx, dword [edx + eax]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + ebp]
fild dword [esp + 0x3c]
mov edx, dword [edx + eax + 4]
add eax, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xbac]
fmul qword [esi + 0xbb0]
mov eax, dword [eax + 4]
mov dword [esp + 0x24], ecx
sub ecx, eax
mov dword [esp + 0x40], edx
fidiv dword [esi + 0xba8]
mov dword [esp + 0x1c], ecx
fld qword [esp + 0x44]
fmul qword [esi + 0xbb0]
faddp st(1)
fstp qword [esp + 0x2c]
fild dword [esp + 0x1c]
fmul qword [esi + 0xbb8]
fidiv dword [esp + 0x24]
fstp qword [esp + 0x24]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
fld qword [esp + 0x2c]
fadd qword [0x5e2910]
push ebp
push edx
sub esp, 8
fstp qword [esp]
call edi
mov eax, dword [esp + 0x24]
push ebp
fld qword [esp + 0x30]
fsub qword [0x5e2910]
push eax
sub esp, 8
fstp qword [esp]
call edi
fld qword [esp + 0x24]
fadd qword [0x5e2910]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
push ebp
push ecx
call edi
fld qword [esp + 0x24]
fsub qword [0x5e2910]
mov edx, dword [esp + 0x2c]
sub esp, 8
fstp qword [esp]
push ebp
push edx
call edi
mov eax, dword [esi + 0xbd8]
inc ebx
cmp ebx, eax
jl 0x43cb1e
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x43cb06
call dword [sym.imp.opengl32.dll_glEnd]
mov ecx, dword [esp + 0x78]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret