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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51cff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
cmp esi, edx
push edi
lea eax, [ecx + 0x25b4]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], eax
jl 0x4956b7
cmp esi, 0x40
jge 0x4956b7
mov ebx, dword [eax + esi*4]
add ebx, esi
lea ecx, [ecx + 0xb0]
mov dword [ebp + 8], ecx
js 0x495695
cmp ebx, 0x40
jge 0x495695
mov edi, dword [ebp + 0xc]
imul ebx, ebx, 0x94
add ebx, ecx
cmp dword [edi + 0xc], edx
jne 0x4953c1
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x3c]
add ecx, eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [ebx + 0x34]
add eax, ecx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x34], edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 0x20], edx
mov edx, dword [ebx + 0x1c]
je 0x495591
mov eax, dword [ebx + 0x3c]
add eax, edx
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x3c], eax
mov ecx, eax
mov eax, dword [ebx + 0x34]
add edx, eax
mov dword [ebx + 0x38], edx
mov eax, edx
mov edx, dword [edi + 0xc]
add ecx, edx
cmp ecx, dword [ebx + 0x70]
jg 0x49544c
mov ecx, dword [edi + 8]
lea edx, [ecx + eax]
cmp edx, dword [ebx + 0x74]
jg 0x49544c
push 0
push ecx
push eax
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [ebx + 0x3c]
push eax
mov ecx, ebx
call fcn.00494900
mov esi, dword [ebx + 0x78]
mov eax, dword [ebx + 0x38]
inc esi
mov dword [ebx + 0x78], esi
mov ecx, dword [edi + 8]
add eax, ecx
mov ecx, dword [ebx + 0x80]
cmp ecx, eax
jle 0x495427
mov eax, ecx
mov edx, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x84]
mov dword [ebx + 0x80], eax
mov eax, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jle 0x495441
mov eax, ecx
mov dword [ebx + 0x84], eax
jmp 0x495506
mov ecx, dword [ebp - 0x14]
push esi
call fcn.00494c50
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], eax
call fcn.00494d10
mov ecx, dword [ebp - 0x14]
push esi
mov ebx, eax
call fcn.00494c50
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [edx]
inc eax
cdq
idiv dword [ebx + 0x88]
push esi
mov dword [ecx], edx
mov ecx, dword [ebp - 0x14]
call fcn.00494c50
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
add eax, esi
push eax
call fcn.00494d10
mov ebx, eax
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x90]
xor edx, edx
cmp eax, ecx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
jl 0x4954af
mov eax, ecx
mov dword [ebx + 0x8c], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x90], edx
mov ecx, dword [edi + 0xc]
mov edx, dword [eax]
mov esi, dword [edi + 8]
mov dword [ebp + 8], ecx
push 0x2000
lea ecx, [ebx + 0x10]
push ecx
mov ecx, dword [ebx + 0x44]
imul ecx, dword [ebp + 8]
push ecx
push 0
push eax
call dword [edx + 0x2c]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x495503
test esi, esi
je 0x495503
mov eax, dword [ebx + 8]
mov edx, dword [eax]
push 0x2000
lea ecx, [ebx + 0x14]
push ecx
lea ecx, [esi + esi]
push ecx
push 0
push eax
call dword [edx + 0x2c]
inc dword [ebx + 0x7c]
mov esi, dword [edi + 0x20]
imul esi, dword [edi + 0x28]
mov ecx, dword [ebx + 0x44]
imul ecx, dword [edi + 0xc]
mov edx, dword [edi]
mov edi, dword [ebx + 0x10]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 4]
mov ecx, dword [ebx + 0x14]
lea edx, [edx + eax*2]
mov ax, word [ebx + 0x3c]
sub ax, word [esi + 0x28]
mov dword [ebp + 0xc], 0
mov edi, dword [ebp + 0xc]
cmp edi, dword [esi + 8]
jge 0x495567
mov di, word [edx]
add di, ax
mov word [ecx], di
mov edi, dword [ebp + 0xc]
add ecx, 2
add edx, 2
inc edi
mov dword [ebp + 0xc], edi
jmp 0x495547
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x495580
mov eax, dword [ebx + 8]
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
mov eax, dword [esi + 8]
mov dword [ebx + 0x34], eax
mov ecx, dword [esi + 0xc]
mov dword [ebx + 0x1c], ecx
jmp 0x4953ac
mov ecx, dword [ebx + 0x3c]
add ecx, edx
mov dword [ebx + 0x3c], ecx
mov edx, dword [edi + 0xc]
add ecx, edx
cmp ecx, dword [ebx + 0x70]
jg 0x4955cb
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
push 0x1000
lea esi, [ebx + 0x10]
push esi
mov esi, eax
imul eax, dword [ebx + 0x3c]
imul esi, edx
push esi
push eax
mov eax, dword [ebx + 4]
push eax
call dword [ecx + 0x2c]
jmp 0x495654
push esi
mov ecx, eax
call fcn.00494c50
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x18], eax
call fcn.00494d10
mov ecx, dword [ebp - 0x14]
push esi
mov ebx, eax
call fcn.00494c50
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [edx]
inc eax
cdq
idiv dword [ebx + 0x88]
push esi
mov dword [ecx], edx
mov ecx, dword [ebp - 0x14]
call fcn.00494c50
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
add eax, esi
push eax
call fcn.00494d10
mov ebx, eax
mov eax, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x90]
xor edx, edx
cmp eax, ecx
mov dword [ebx + 0x3c], edx
jl 0x49562a
mov eax, ecx
mov dword [ebx + 0x90], edx
push 0x2000
mov dword [ebx + 0x8c], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [ebx + 4]
mov esi, dword [eax]
lea edx, [ebx + 0x10]
push edx
mov edx, dword [ebx + 0x44]
imul edx, ecx
push edx
push 0
push eax
call dword [esi + 0x2c]
mov ecx, dword [edi + 0xc]
imul ecx, dword [ebx + 0x44]
mov esi, dword [edi]
mov edi, dword [ebx + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x495687
mov eax, dword [ebx + 8]
mov edx, dword [eax]
push eax
call dword [edx + 0x30]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0x1c], ecx
jmp 0x4953ac
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp + 0xc], 0x52145c
call dword [0x521298]
push 0x52fdac
lea eax, [ebp - 0x28]
push eax
call fcn.00514dd6
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0x52145c
call dword [0x521298]
push 0x52fdac
lea edx, [ebp - 0x34]
push edx
call fcn.00514dd6
push str.CModelManager::GetRenderSingleBufMesh
mov ecx, 0x577870
call fcn.00401310
push 0
push 0
call fcn.00514dd6
int3