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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff235
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x6a4108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 1
call fcn.00509700
push eax
lea ecx, [ebp - 0x268]
call fcn.0054b1c0
mov byte [ebp - 4], 2
test esi, esi
jne 0x5031a8
mov ecx, dword [ebp - 0x264]
call fcn.00509710
mov ecx, dword [eax + 4]
call fcn.0050fe40
mov esi, eax
movq xmm0, qword [esi]
movq qword [ebp - 0x298], xmm0
movq xmm0, qword [esi + 8]
mov esi, dword [ebp + 0x1c]
mov ecx, esi
movq qword [ebp - 0x290], xmm0
call fcn.00517ce0
lea eax, [ebp - 0x248]
push eax
lea ecx, [esi + 0x44]
call fcn.004afba0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x238]
call fcn.0054b1c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x248]
call fcn.00550be0
mov eax, dword [ebp - 0x234]
mov edi, dword [eax + 0x18]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00550be0
mov esi, dword [ebp + 0x1c]
mov ecx, esi
call fcn.00517ce0
lea eax, [ebp - 0x280]
push eax
lea ecx, [esi + 0x44]
call fcn.004afba0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x270]
call fcn.0054b1c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x280]
call fcn.00550be0
mov eax, dword [ebp - 0x26c]
mov esi, dword [eax + 0x14]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.00550be0
movss xmm3, dword [0x612874]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
shr esi, 0x1f
movd xmm1, dword [ebp - 0x290]
addsd xmm0, qword [esi*8 + 0x625710]
cvtdq2ps xmm1, xmm1
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm3
movss dword [ebp - 0x23c], xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
shr edi, 0x1f
addsd xmm0, qword [edi*8 + 0x625710]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm3
movss dword [ebp - 0x258], xmm0
movaps xmm0, xmm1
mulss xmm0, xmm3
movss dword [ebp - 0x21c], xmm0
movd xmm0, dword [ebp - 0x28c]
cvtdq2ps xmm0, xmm0
movaps xmm2, xmm0
mulss xmm2, xmm3
movss dword [ebp - 0x234], xmm2
movss xmm2, dword [0x612878]
movaps xmm3, xmm2
divss xmm3, xmm1
divss xmm2, xmm0
movss dword [ebp - 0x284], xmm3
movss dword [ebp - 0x254], xmm2
lea eax, [ebp - 0x2a0]
push eax
mov ecx, ebx
call fcn.00502bd0
movss xmm1, dword [eax]
movss xmm2, dword [eax + 4]
mulss xmm1, dword [ebp - 0x23c]
mulss xmm2, dword [ebp - 0x258]
movss dword [ebp - 0x274], xmm1
mov dword [ebp - 0x90], 0xbf800000
movss dword [ebp - 0x23c], xmm2
mov dword [ebp - 0x8c], 0x3f800000
mov dword [ebp - 0x88], 0x3f800000
mov dword [ebp - 0x84], 0x3f800000
mov dword [ebp - 0x80], 0x3f800000
mov dword [ebp - 0x7c], 0xbf800000
mov dword [ebp - 0x78], 0xbf800000
mov dword [ebp - 0x74], 0xbf800000
mov dword [ebp - 0x158], 0x3f800000
mov dword [ebp - 0x154], 0x3f800000
mov dword [ebp - 0x150], 0x3f800000
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0x3f800000
mov dword [ebp - 0x144], 0xbf800000
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0x3f800000
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xbf800000
mov dword [ebp - 0x128], 0xbf800000
mov dword [ebp - 0x124], 0x3f800000
mov dword [ebp - 0x120], 0xbf800000
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 0xbf800000
mov dword [ebp - 0x114], 0xbf800000
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0x3f800000
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0x3f800000
mov dword [ebp - 0x9c], 0x3f800000
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0x3f800000
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 0x3f800000
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0x3f800000
mov dword [ebp - 0xbc], 0x3f800000
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0x3f800000
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x68]
xor esi, esi
movss xmm0, dword [ebp + esi - 0x90]
mulss xmm0, xmm1
mov ecx, ebx
movss dword [ebp - 0x27c], xmm0
movss xmm0, dword [ebp + esi - 0x8c]
mulss xmm0, xmm2
movss dword [ebp - 0x224], xmm0
call fcn.00502ba0
movss xmm0, dword [ebp - 0x274]
lea ecx, [ebp - 0x158]
mulss xmm0, dword [ecx + eax*8]
lea eax, [ecx + eax*8]
mov ecx, ebx
movss dword [ebp - 0x258], xmm0
movss xmm0, dword [eax + 4]
mulss xmm0, dword [ebp - 0x23c]
lea eax, [ebp - 0x290]
push eax
movss dword [ebp - 0x26c], xmm0
call fcn.00502bb0
movss xmm2, dword [ebp - 0x23c]
movss xmm1, dword [eax]
movss xmm0, dword [eax + 4]
addss xmm1, dword [ebp - 0x258]
addss xmm0, dword [ebp - 0x26c]
add esi, 8
add edi, 0x18
addss xmm1, dword [ebp - 0x27c]
addss xmm0, dword [ebp - 0x224]
subss xmm1, dword [ebp - 0x21c]
subss xmm0, dword [ebp - 0x234]
movss dword [ebp - 0x248], xmm1
mov eax, dword [ebp - 0x248]
movss xmm1, dword [ebp - 0x274]
mov dword [edi - 0x20], eax
movss dword [ebp - 0x244], xmm0
mov eax, dword [ebp - 0x244]
mov dword [edi - 0x1c], eax
mov eax, dword [ebp + esi - 0xb8]
mov dword [edi - 0x18], eax
mov eax, dword [ebp + esi - 0xb4]
mov dword [edi - 0x14], eax
mov eax, dword [ebp + esi - 0xd8]
mov dword [edi - 0x10], eax
mov eax, dword [ebp + esi - 0xd4]
mov dword [edi - 0xc], eax
cmp esi, 0x20
jl 0x503590
push 0x90
call fcn.005c9510
mov esi, eax
add esp, 4
mov dword [ebp - 0x234], esi
mov byte [ebp - 4], 9
test esi, esi
je 0x5037ce
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
jmp 0x5037d0
xor esi, esi
mov byte [ebp - 4], 2
movq xmm0, qword [ebp - 0x58]
movq xmm2, qword [ebp - 0x40]
movq xmm1, qword [ebp - 0x38]
movq xmm5, qword [ebp - 0x70]
movq xmm4, qword [ebp - 0x68]
movq xmm3, qword [ebp - 0x60]
movq qword [esi + 0x18], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [esi + 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x30], xmm2
movq qword [esi + 0x48], xmm2
movq qword [esi + 0x38], xmm1
movq qword [esi + 0x40], xmm0
movq qword [esi + 0x50], xmm1
movq qword [esi + 0x58], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [esi + 0x60], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x68], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi], xmm5
movq qword [esi + 0x78], xmm5
movq qword [esi + 8], xmm4
movq qword [esi + 0x80], xmm4
mov ecx, 0x75ae58
movq qword [esi + 0x10], xmm3
movq qword [esi + 0x70], xmm0
movq qword [esi + 0x88], xmm3
call fcn.004c0a20
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x50389c
push 1
push 0
push 0x90
push esi
mov ecx, eax
call fcn.00517ec0
mov ebx, eax
jmp 0x50389e
xor ebx, ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
test ebx, ebx
je 0x5038f4
push ebx
lea ecx, [ebx + 4]
call fcn.004ad620
mov edi, dword [ebx + 4]
test eax, eax
jne 0x5038e8
mov esi, dword [edi]
test esi, esi
je 0x5038e8
lea eax, [esi + 1]
push eax
push esi
push edi
call fcn.004f9050
add esp, 0xc
cmp eax, esi
je 0x5038e8
mov esi, dword [edi]
test esi, esi
jne 0x5038d0
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x260]
lea ecx, [ebp - 0x220]
push dword [esi + 4]
push 6
sub esp, 8
mov eax, esp
mov dword [ebp - 0x234], esp
push eax
call fcn.00505390
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 0xb
call fcn.0051d270
add esp, 0x14
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x250]
push eax
call fcn.004fc080
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0x48]
push eax
call fcn.004fba10
movss xmm3, dword [ebp - 0x254]
movss xmm4, dword [ebp - 0x284]
movaps xmm2, xmm3
mulss xmm2, dword [0x624180]
mulss xmm3, dword [0x612874]
mulss xmm2, dword [0x61289c]
movaps xmm1, xmm4
mulss xmm1, dword [0x624180]
mulss xmm4, dword [0x612874]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x1d8]
movss dword [ebp - 0x110], xmm1
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x100], 0
movss dword [ebp - 0xfc], xmm2
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0x3f800000
mov dword [ebp - 0xe4], 0
movss dword [ebp - 0xe0], xmm4
movss dword [ebp - 0xdc], xmm3
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0x3f800000
call fcn.0051f060
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x198]
call fcn.0051f060
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.0051f250
sub esp, 8
mov eax, esp
mov dword [ebp - 0x254], esp
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x230]
push eax
mov byte [ebp - 4], 0xd
call fcn.0051d990
add esp, 0xc
mov byte [ebp - 4], 0xf
push str.uniform_ModelViewProjection
lea ecx, [ebp - 0x25c]
call fcn.00503f30
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004fb460
push str.VertexColors
lea ecx, [ebp - 0x240]
call fcn.00503f30
mov ecx, dword [ebp + 0xc]
push 0x10
push dword [ebp - 0x288]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004fb4e0
push str.uniform_Texture
lea ecx, [ebp - 0x278]
call fcn.00503f30
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp], 0
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.004fb4a0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push eax
call fcn.004fb820
mov ecx, dword [ebp + 0xc]
push 6
push 0
push 0
call fcn.004fa740
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push eax
call fcn.004fc080
mov byte [ebp - 4], 0xf
mov esi, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x224], 0
test esi, esi
je 0x503bd3
push esi
mov dword [ebp - 0x228], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503bd1
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503bac
lea ebx, [eax + 1]
jmp 0x503baf
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503bc2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x503bd3
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503bd3
mov eax, dword [esi]
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp + 0xc]
add eax, 0x50
push eax
call fcn.004fba10
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x230]
mov edi, dword [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
test esi, esi
je 0x503c58
push esi
mov dword [ebp - 0x230], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503c56
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503c31
lea ebx, [eax + 1]
jmp 0x503c34
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503c47
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x503c58
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503c58
mov eax, dword [esi]
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x250]
mov edi, dword [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
test esi, esi
je 0x503ccb
push esi
mov dword [ebp - 0x250], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503cc9
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503ca4
lea ebx, [eax + 1]
jmp 0x503ca7
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503cba
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x503ccb
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503ccb
mov eax, dword [esi]
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x220]
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
test esi, esi
je 0x503d3e
push esi
mov dword [ebp - 0x220], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503d3c
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503d17
lea ebx, [eax + 1]
jmp 0x503d1a
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503d2d
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x503d3e
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503d3e
mov eax, dword [esi]
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x268]
mov edi, dword [ebp - 0x264]
mov dword [ebp - 0x264], 0
test esi, esi
je 0x503db9
push esi
mov dword [ebp - 0x268], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503db7
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503d8a
lea ebx, [eax + 1]
jmp 0x503d8d
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503da8
mov ecx, edi
call fcn.00509090
push edi
call fcn.005c68e1
add esp, 4
test ebx, ebx
je 0x503db9
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503db9
mov eax, dword [esi]
mov byte [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0xc], 0
test esi, esi
je 0x503e20
push esi
mov dword [ebp + 8], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503e1e
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503df9
lea ebx, [eax + 1]
jmp 0x503dfc
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503e0f
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x503e20
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503e20
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov dword [ebp + 0x1c], 0
test esi, esi
je 0x503e8a
push esi
mov dword [ebp + 0x18], 0
xor ebx, ebx
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503e88
lea eax, [esi + 4]
push eax
call fcn.004f9070
add esp, 4
test eax, eax
jne 0x503e63
lea ebx, [eax + 1]
jmp 0x503e66
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
test edi, edi
je 0x503e79
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebx, ebx
je 0x503e8a
push esi
call fcn.004f8cc0
add esp, 4
jmp 0x503e8a
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c7124
mov esp, ebp
pop ebp
ret 0x1c