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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x51c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x3c], 0
mov edx, dword [eax]
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x5c], eax
cmp dword [edx + 0x10], 0
jbe 0x4bd4f8
mov eax, dword [ecx + 0x1c]
xor edi, edi
mov esi, dword [ebp + 0xc]
add eax, 0x58
fld qword [0x51a930]
mov dword [esp + 0x70], eax
mov eax, esi
shl eax, 4
sub eax, esi
mov dword [esp + 0x28], edi
lea eax, [esp + eax*8 + 0x78]
mov dword [esp + 0x64], eax
mov eax, esi
shl eax, 4
sub eax, esi
xor ecx, ecx
mov dword [esp + 0x44], ecx
lea eax, [esp + eax*8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
mov ebx, dword [edx + 0x14]
add ebx, ecx
xor ecx, ecx
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4bd285
mov ebx, dword [ebx + 0x14]
lea edx, [esp + 0x78]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], edx
test ebx, ebx
je 0x4bd26e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edi + 0x18]
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
test eax, eax
jns 0x4bd208
fadd qword [0x514ba8]
mov eax, ebx
mov dword [esp + 0x14], ebx
imul eax, ecx
mov esi, edx
fstp qword [esp + 0x50]
fld qword [esp + 0x50]
fmul st(1)
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x70]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
mov eax, dword [eax]
lea edi, [eax + ecx*4]
mov ebx, 3
fild dword [edi]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fmul st(1)
call fcn.0041b1f0
mov dword [esi], eax
add edi, 4
add esi, 4
dec ebx
jne 0x4bd236
dec dword [esp + 0x14]
jne 0x4bd231
mov ecx, dword [esp + 0x1c]
fstp st(0)
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
inc ecx
add edx, 0x78
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
cmp ecx, eax
jb 0x4bd1e1
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [ecx + 0x14], edx
jbe 0x4bd4c9
mov edi, dword [esp + 0x34]
xor ebx, ebx
mov eax, dword [esp + 0x64]
sub eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x74], eax
mov ecx, dword [ecx + 0x1c]
add ecx, ebx
mov dword [esp + 0x38], 0
mov dword [esp + 0x50], ecx
cmp dword [ecx + 0x18], 0
jbe 0x4bd49f
mov ebx, edi
lea edx, [ecx + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
mov eax, dword [edx - 4]
sub eax, dword [edx - 0xc]
je 0x4bd470
mov eax, dword [edx]
sub eax, dword [edx - 8]
je 0x4bd470
mov eax, dword [ecx + 0x10]
xor edi, edi
imul eax, dword [ecx + 0x14]
mov dword [esp + 0x40], edi
test eax, eax
je 0x4bd470
xor edx, edx
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + edx + 0x10]
add ecx, edx
xor edx, edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x10], edx
imul eax, dword [ecx + 0x14]
test eax, eax
je 0x4bd446
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x74]
shl eax, 3
mov dword [esp + 0x68], eax
mov esi, dword [esi + ebx]
xor ebx, ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x48], ebx
mov edi, dword [ecx + 0x18]
mov ecx, dword [esp + 0x28]
add edi, ebx
mov ebx, dword [edi + 4]
add ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + ecx + 0x18]
sub ecx, dword [edi + 0x1c]
cmp dword [ebp + 0xc], 0
jne 0x4bd384
mov eax, esi
cmp ecx, eax
jl 0x4bd379
xor eax, eax
mov dword [edi + 0x2c], eax
jmp 0x4bd3a4
sub eax, ecx
mov dword [edi + 0x2c], 0
jmp 0x4bd3a4
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov eax, esi
sub eax, edx
cmp ecx, edx
jl 0x4bd3a0
sub edx, ecx
add eax, edx
mov edx, dword [esp + 0x10]
jns 0x4bd3a4
xor eax, eax
jmp 0x4bd3a4
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x2c]
test ecx, ecx
jne 0x4bd3bb
test eax, eax
je 0x4bd3b7
lea esi, [eax - 1]
lea esi, [eax + esi*2]
jmp 0x4bd3c0
xor esi, esi
jmp 0x4bd3c0
lea esi, [ecx + eax*2]
add esi, eax
mov eax, esi
sub eax, ecx
mov dword [ebx], eax
je 0x4bd413
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4bd3e0
mov eax, dword [edi + 8]
lea ecx, [esi + esi*2]
mov eax, dword [eax + ecx*8 - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [edi]
jmp 0x4bd403
mov edx, dword [edi + 8]
lea ecx, [eax + eax*2]
lea eax, [esi + esi*2]
mov eax, dword [edx + eax*8 - 0x18]
sub eax, dword [edx + ecx*8 - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x2c]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 8]
mov eax, dword [eax + ecx*8 - 0x18]
add eax, dword [edi]
cmp dword [ebp + 0x10], 0
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
je 0x4bd413
mov dword [edi + 0x2c], esi
mov ecx, dword [esp + 0x6c]
inc edx
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x60]
add ebx, 0x34
mov dword [esp + 0x10], edx
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
mov dword [esp + 0x48], ebx
cmp edx, eax
mov eax, dword [esp + 0x68]
jb 0x4bd348
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x50]
inc edi
mov edx, dword [esp + 0x30]
mov esi, dword [ebp + 0xc]
add edx, 0x28
mov dword [esp + 0x40], edi
mov eax, dword [ecx + 0x10]
imul eax, dword [ecx + 0x14]
mov dword [esp + 0x30], edx
cmp edi, eax
jb 0x4bd30a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x38]
add edx, 0x24
mov esi, dword [ebp + 0xc]
inc eax
add ebx, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebx
cmp eax, dword [ecx + 0x18]
jb 0x4bd2d8
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc edx
mov esi, dword [ebp + 0xc]
add ebx, 0x98
add edi, 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
cmp edx, dword [ecx + 0x14]
jb 0x4bd2b0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
add edi, 0x34
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
inc edx
mov esi, dword [ebp + 0xc]
add ecx, 0x4c
cmp edx, dword [eax + 0x10]
mov dword [esp + 0x3c], edx
mov edx, eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], edi
jb 0x4bd1b0
fstp st(0)
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret