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

Disassembly:
sub esp, 0x150
push ebp
mov ebp, dword [esp + 0x158]
test ebp, ebp
mov dword [esp + 0x6c], 0x3f800000
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0x3f800000
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0x3f800000
mov dword [esp + 0xdc], 0x3f800000
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 0
mov dword [esp + 0xec], 0
mov dword [esp + 0xf0], 0x3f800000
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0
mov dword [esp + 0x100], 0
mov dword [esp + 0x104], 0x3f800000
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0x3f800000
je 0x45a650
mov eax, dword [0x499620]
push esi
mov esi, dword [ebp + 0x70]
push edi
cmp esi, eax
jbe 0x459bf6
mov eax, dword [0x499610]
mov edi, esi
shl edi, 4
push edi
push eax
call fcn.0043ed70
mov ecx, dword [0x499614]
push edi
push ecx
mov dword [0x499610], eax
call fcn.0043ed70
lea edx, [esi + esi*2]
mov dword [0x499614], eax
mov eax, dword [0x499618]
shl edx, 2
push edx
push eax
call fcn.0043ed70
mov edx, dword [0x49961c]
lea ecx, [esi*8]
push ecx
push edx
mov dword [0x499618], eax
call fcn.0043ed70
add esp, 0x20
mov dword [0x49961c], eax
mov dword [0x499620], esi
mov ecx, dword [ebp + 0x70]
mov edi, dword [0x499614]
shl ecx, 4
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x40], 4
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0x70]
mov edi, dword [0x499618]
lea ecx, [eax + eax*2]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x168]
lea esi, [eax + 0xc]
mov dword [esp + 0x30], esi
mov eax, dword [esi + 8]
test eax, eax
je 0x45a196
fld dword [esi]
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x459c7b
fld dword [esi]
fcomp dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x459c7b
fld dword [esi]
fstp dword [esp + 0x24]
jmp 0x459c9a
fld dword [esi]
fcomp dword [0x46c334]
mov dword [esp + 0x24], 0
fnstsw ax
test ah, 5
jnp 0x459c9a
mov dword [esp + 0x24], 0x3f800000
fld dword [esi + 4]
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x45a658
fld dword [esi + 4]
fcomp dword [0x46c38c]
fnstsw ax
and eax, 0x4100
je 0x45a658
fld dword [esi + 4]
fst dword [esp + 0x28]
fcomp dword [0x46c334]
fnstsw ax
test ah, 0x41
jnp 0x45a196
mov ecx, dword [esi - 8]
lea edx, [esp + 0x150]
push ecx
push 1
push edx
call fcn.00431410
mov eax, dword [esp + 0x15c]
add esp, 0xc
test eax, eax
je 0x459d0e
mov ebx, dword [esp + 0x158]
test ebx, ebx
je 0x459d10
test byte [ebx + 4], 8
jne 0x459d10
xor ebx, ebx
mov eax, dword [esi - 4]
lea ecx, [esp + 0x140]
push eax
push 1
push ecx
call fcn.00431410
mov eax, dword [esp + 0x14c]
add esp, 0xc
test eax, eax
je 0x459d42
mov edi, dword [esp + 0x148]
test edi, edi
je 0x459d44
test byte [edi + 4], 8
jne 0x459d44
xor edi, edi
test ebx, ebx
je 0x45a196
test edi, edi
je 0x45a196
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebx + 0x70]
cmp eax, ecx
jne 0x45a196
cmp dword [edi + 0x70], ecx
jne 0x45a196
mov eax, dword [ebp + 4]
mov edx, dword [ebx + 4]
and eax, 4
and edx, 4
cmp edx, eax
jne 0x45a196
mov edx, dword [edi + 4]
and edx, 4
cmp edx, eax
jne 0x45a196
lea eax, [ebx + 8]
mov edx, dword [ebx + 8]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
lea edx, [ebx + 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], eax
mov eax, dword [edx]
mov dword [esp + 0xb8], eax
fld dword [esp + 0xb8]
mov eax, dword [edx + 4]
fsub dword [esp + 0x34]
mov edx, dword [edx + 8]
mov dword [esp + 0xbc], eax
fld dword [esp + 0xbc]
fsub dword [esp + 0x38]
mov dword [esp + 0xc0], edx
lea eax, [edi + 8]
fld dword [esp + 0xc0]
fsub dword [esp + 0x3c]
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
fstp dword [esp + 0x64]
fxch st(1)
fmul dword [0x46dc2c]
mov eax, dword [eax + 8]
mov dword [esp + 0x48], edx
lea edx, [edi + 0x14]
mov dword [esp + 0x4c], eax
fstp dword [esp + 0x5c]
mov eax, dword [edx]
fmul dword [0x46dc2c]
mov dword [esp + 0xd0], eax
mov eax, dword [edx + 4]
mov dword [esp + 0xd4], eax
mov edx, dword [edx + 8]
fstp dword [esp + 0x60]
fld dword [esp + 0x64]
fmul dword [0x46dc2c]
mov dword [esp + 0xd8], edx
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x2c], edx
fstp dword [esp + 0x64]
fld dword [esp + 0xd0]
fsub dword [esp + 0x44]
fld dword [esp + 0xd4]
fsub dword [esp + 0x48]
fld dword [esp + 0xd8]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x58]
fxch st(1)
fmul dword [0x46dc2c]
fstp dword [esp + 0x50]
fmul dword [0x46dc2c]
fstp dword [esp + 0x54]
fld dword [esp + 0x58]
fmul dword [0x46dc2c]
fstp dword [esp + 0x58]
jbe 0x45a00a
fld dword [0x46c38c]
fsub dword [esp + 0x24]
xor eax, eax
mov ecx, dword [ebx + 0x68]
xor esi, esi
add ecx, edx
mov si, word [ecx]
mov dword [esp + 0x10], esi
xor esi, esi
fild dword [esp + 0x10]
mov si, word [ecx + 2]
mov dword [esp + 0x10], esi
xor esi, esi
fmul dword [esp + 0x5c]
mov si, word [ecx + 4]
mov ecx, dword [edi + 0x68]
add ecx, edx
fadd dword [esp + 0x34]
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
xor esi, esi
mov si, word [ecx]
fmul dword [esp + 0x60]
fadd dword [esp + 0x38]
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
xor esi, esi
mov si, word [ecx + 2]
fmul dword [esp + 0x64]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x70]
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
xor esi, esi
mov si, word [ecx + 4]
fmul dword [esp + 0x50]
fadd dword [esp + 0x44]
fild dword [esp + 0x10]
mov dword [esp + 0x10], esi
fmul dword [esp + 0x54]
fadd dword [esp + 0x48]
fstp dword [esp + 0x12c]
fild dword [esp + 0x10]
fmul dword [esp + 0x58]
fadd dword [esp + 0x4c]
fstp dword [esp + 0x130]
fld st(3)
fmul st(3)
fxch st(1)
fmul dword [esp + 0x24]
faddp st(1)
fstp dword [esp + 0xc4]
fld st(2)
fmul st(1)
fld dword [esp + 0x12c]
fmul dword [esp + 0x24]
faddp st(1)
fstp st(2)
fstp st(0)
fld st(1)
fmul dword [esp + 0x70]
fld dword [esp + 0x130]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0xc4]
fmul dword [esp + 0x28]
fstp dword [esp + 0xc4]
fxch st(1)
fmul dword [esp + 0x28]
mov ecx, dword [0x499614]
add edx, 6
add eax, 0x10
fstp dword [esp + 0xc8]
fmul dword [esp + 0x28]
fld dword [esp + 0xc4]
fadd dword [eax + ecx - 0x10]
fstp dword [eax + ecx - 0x10]
mov ecx, dword [0x499614]
fld dword [esp + 0xc8]
fadd dword [eax + ecx - 0xc]
fstp dword [eax + ecx - 0xc]
mov ecx, dword [0x499614]
fadd dword [eax + ecx - 8]
fstp dword [eax + ecx - 8]
mov ecx, dword [0x499614]
mov dword [eax + ecx - 4], 0x3f800000
mov ecx, dword [esp + 0x2c]
mov esi, dword [ebp + 0x70]
inc ecx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jb 0x459ea8
mov esi, dword [esp + 0x30]
fstp st(0)
test byte [ebp + 4], 4
je 0x45a196
mov ecx, dword [ebp + 0x70]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x2c], eax
jbe 0x45a196
fld dword [0x46c38c]
fsub dword [esp + 0x24]
xor esi, esi
mov edx, dword [ebx + 0x6c]
lea ecx, [esi + edx]
xor edx, edx
mov dl, byte [ecx]
mov dword [esp + 0x10], edx
xor edx, edx
fild dword [esp + 0x10]
mov dl, byte [ecx + 1]
mov dword [esp + 0x10], edx
xor edx, edx
fmul dword [0x46dc28]
mov dl, byte [ecx + 2]
mov ecx, dword [edi + 0x6c]
add ecx, esi
fsub dword [0x46c38c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [ecx]
fmul dword [0x46dc28]
fsub dword [0x46c38c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [ecx + 1]
fmul dword [0x46dc28]
fsub dword [0x46c38c]
fstp dword [esp + 0x1c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
xor edx, edx
mov dl, byte [ecx + 2]
mov ecx, dword [0x499618]
fmul dword [0x46dc28]
fsub dword [0x46c38c]
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul dword [0x46dc28]
fsub dword [0x46c38c]
fstp dword [esp + 0x138]
fild dword [esp + 0x10]
fmul dword [0x46dc28]
fsub dword [0x46c38c]
fstp dword [esp + 0x13c]
fld st(3)
fmul st(3)
fxch st(1)
fmul dword [esp + 0x24]
faddp st(1)
fstp dword [esp + 0xdc]
fld st(2)
fmul st(1)
fld dword [esp + 0x138]
fmul dword [esp + 0x24]
faddp st(1)
fstp st(2)
fstp st(0)
fld st(1)
fmul dword [esp + 0x1c]
fld dword [esp + 0x13c]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0xdc]
fmul dword [esp + 0x28]
fstp dword [esp + 0xdc]
fxch st(1)
fmul dword [esp + 0x28]
fstp dword [esp + 0xe0]
fmul dword [esp + 0x28]
fld dword [esp + 0xdc]
fadd dword [eax + ecx]
fstp dword [eax + ecx]
mov ecx, dword [0x499618]
fld dword [esp + 0xe0]
fadd dword [eax + ecx + 4]
fstp dword [eax + ecx + 4]
mov ecx, dword [0x499618]
add esi, 3
fadd dword [eax + ecx + 8]
add eax, 0xc
fstp dword [eax + ecx - 4]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x70]
inc ecx
cmp ecx, edx
mov dword [esp + 0x2c], ecx
jb 0x45a031
mov esi, dword [esp + 0x30]
fstp st(0)
mov eax, dword [esp + 0x40]
add esi, 0x18
dec eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], eax
jne 0x459c48
mov ecx, dword [esp + 0x190]
mov edx, dword [esp + 0x18c]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x18c]
push ecx
push edx
push eax
call fcn.0043e390
mov esi, dword [esp + 0x18c]
lea ecx, [esp + 0x88]
push ecx
push esi
call fcn.0043e110
mov edi, dword [esp + 0x198]
lea edx, [esp + 0x90]
push edx
push edi
call fcn.0043e1f0
mov ebx, dword [esp + 0x1a4]
lea eax, [esp + 0x98]
push eax
push ebx
call fcn.0043e2c0
mov edx, dword [esp + 0x1a0]
mov eax, dword [esp + 0x19c]
lea ecx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x19c]
push edx
push eax
push ecx
call fcn.0043e070
lea edx, [esp + 0x120]
push edx
push esi
call fcn.0043e110
add esp, 0x40
lea eax, [esp + 0xe8]
push eax
push edi
call fcn.0043e1f0
lea ecx, [esp + 0xf0]
push ecx
push ebx
call fcn.0043e2c0
mov eax, dword [ebp + 0x70]
add esp, 0x10
xor edx, edx
test eax, eax
pop ebx
jbe 0x45a373
xor eax, eax
mov ecx, dword [0x499614]
inc edx
fld dword [eax + ecx]
add eax, 0x10
fstp dword [esp + 0x10]
fld dword [eax + ecx - 0xc]
fstp dword [esp + 0x14]
fld dword [eax + ecx - 8]
fst dword [esp + 0x18]
fmul dword [esp + 0x94]
fld dword [esp + 0x14]
fmul dword [esp + 0x84]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x74]
faddp st(1)
fadd dword [esp + 0xa4]
fld dword [esp + 0x18]
fmul dword [esp + 0x98]
fld dword [esp + 0x14]
fmul dword [esp + 0x88]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x78]
faddp st(1)
fadd dword [esp + 0xa8]
fld dword [esp + 0x18]
fmul dword [esp + 0x9c]
fld dword [esp + 0x14]
fmul dword [esp + 0x8c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x7c]
faddp st(1)
fadd dword [esp + 0xac]
fstp dword [esp + 0x6c]
fld dword [esp + 0x18]
fmul dword [esp + 0xa0]
fld dword [esp + 0x14]
fmul dword [esp + 0x90]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0x80]
faddp st(1)
fadd dword [esp + 0xb0]
fstp dword [esp + 0x70]
fxch st(1)
fstp dword [eax + ecx - 0x10]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 0xc]
fld dword [esp + 0x6c]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 8]
fld dword [esp + 0x70]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 4]
cmp edx, dword [ebp + 0x70]
jb 0x45a272
test byte [ebp + 4], 4
je 0x45a45e
mov eax, dword [ebp + 0x70]
xor edx, edx
test eax, eax
jbe 0x45a45e
xor eax, eax
mov ecx, dword [0x499618]
inc edx
fld dword [eax + ecx]
add eax, 0xc
fstp dword [esp + 0x10]
fld dword [eax + ecx - 8]
fstp dword [esp + 0x14]
fld dword [eax + ecx - 4]
fst dword [esp + 0x18]
fmul dword [esp + 0x104]
fld dword [esp + 0x14]
fmul dword [esp + 0xf4]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0xe4]
faddp st(1)
fadd dword [esp + 0x114]
fld dword [esp + 0x18]
fmul dword [esp + 0x108]
fld dword [esp + 0x14]
fmul dword [esp + 0xf8]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0xe8]
faddp st(1)
fadd dword [esp + 0x118]
fld dword [esp + 0x18]
fmul dword [esp + 0x10c]
fld dword [esp + 0x14]
fmul dword [esp + 0xfc]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [esp + 0xec]
faddp st(1)
fadd dword [esp + 0x11c]
fstp dword [esp + 0x144]
fxch st(1)
fstp dword [eax + ecx - 0xc]
mov ecx, dword [0x499618]
fstp dword [eax + ecx - 8]
fld dword [esp + 0x144]
mov ecx, dword [0x499618]
fstp dword [eax + ecx - 4]
cmp edx, dword [ebp + 0x70]
jb 0x45a38c
mov edx, dword [0x499610]
mov eax, dword [esp + 0x168]
mov ecx, dword [0x499618]
push edx
mov edx, dword [0x499614]
push eax
mov eax, dword [ebp + 4]
push 0
push ecx
mov ecx, dword [ebp + 0x70]
push edx
push eax
push ecx
call fcn.0045a680
mov edx, dword [0x499610]
mov eax, dword [0x499614]
mov ecx, dword [ebp + 0x70]
push edx
push eax
push ecx
call fcn.0045afa0
mov eax, dword [ebp + 0x70]
add esp, 0x28
xor edx, edx
test eax, eax
jbe 0x45a5cc
xor eax, eax
mov ecx, dword [0x499614]
inc edx
fld dword [eax + ecx]
add eax, 0x10
fstp dword [esp + 0x10]
fld dword [eax + ecx - 0xc]
fstp dword [esp + 0x14]
fld dword [eax + ecx - 8]
fstp dword [esp + 0x18]
fld dword [eax + ecx - 4]
fst dword [esp + 0x1c]
fmul dword [0x499750]
fld dword [esp + 0x18]
fmul dword [0x499740]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x499730]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499720]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [0x499754]
fld dword [esp + 0x18]
fmul dword [0x499744]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x499734]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499724]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [0x499758]
fld dword [esp + 0x18]
fmul dword [0x499748]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x499738]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x499728]
faddp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x1c]
fmul dword [0x49975c]
fld dword [esp + 0x18]
fmul dword [0x49974c]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [0x49973c]
faddp st(1)
fld dword [esp + 0x10]
fmul dword [0x49972c]
faddp st(1)
fstp dword [esp + 0x70]
fxch st(1)
fstp dword [eax + ecx - 0x10]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 0xc]
fld dword [esp + 0x6c]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 8]
fld dword [esp + 0x70]
mov ecx, dword [0x499614]
fstp dword [eax + ecx - 4]
cmp edx, dword [ebp + 0x70]
jb 0x45a4b2
mov eax, dword [0x499614]
mov ecx, dword [0x499600]
mov esi, dword [0x499610]
mov edi, dword [ebp + 0x60]
cmp eax, ecx
je 0x45a5f9
push eax
push 0
push 0x1406
push 4
mov dword [0x499600], eax
call dword [sym.imp.OPENGL32.dll_glVertexPointer]
cmp edi, dword [0x499604]
je 0x45a617
push edi
push 0
push 0x1406
push 2
mov dword [0x499604], edi
call dword [sym.imp.OPENGL32.dll_glTexCoordPointer]
cmp esi, dword [0x499608]
je 0x45a635
push esi
push 0
push 0x1406
push 4
mov dword [0x499608], esi
call dword [sym.imp.OPENGL32.dll_glColorPointer]
mov edx, dword [ebp + 0x74]
mov ebp, dword [ebp + 0x78]
push edx
push 0x1405
lea eax, [ebp + ebp*2]
push eax
push 4
call dword [sym.imp.OPENGL32.dll_glDrawElements]
pop edi
pop esi
pop ebp
add esp, 0x150
ret
fld dword [esi + 4]
fcomp dword [0x46c334]
fnstsw ax
test ah, 5
jnp 0x45a196
mov dword [esp + 0x28], 0x3f800000
jmp 0x459cdc