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

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x70]
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
mov edi, eax
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [eax + 4]
add eax, 4
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
fldz
mov edx, dword [esp + 0x94]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x4c], edx
mov edx, dword [ebp + 0x4c]
dec edx
cmp dword [esp + 0x8c], edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x50], eax
sete al
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x54], ecx
mov byte [esp + 0x13], al
test al, al
je 0x4b87eb
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x4b877e
dec eax
jmp 0x4b8780
xor eax, eax
mov ecx, dword [ebp + 0x34]
movzx esi, byte [ecx + eax]
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4b87a7
call fcn.00501daa
mov edx, dword [edi + 0x44]
mov eax, dword [ebx + 0x2c8]
lea ecx, [esi + esi*8]
fld dword [edx + ecx*8 + 0x24]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax + 4]
fstp dword [esp + 0x30]
add eax, 4
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
push eax
lea esi, [ebx + 0x250]
call fcn.004a4440
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
fmul dword [esp + 0x30]
fstp dword [esp + 0x28]
mov ecx, dword [ebp + 0x38]
mov edx, dword [esp + 0x84]
fld dword [ecx + edx*4]
fsub qword [esp + 0xa0]
fstp dword [esp + 0x34]
fldz
fld dword [esp + 0x28]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x4b8b46
cmp byte [esp + 0xac], 0
fild dword [esp + 0x88]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd dword [esp + 0x34]
fst dword [esp + 0x48]
faddp st(1)
fstp dword [esp + 0x50]
je 0x4b8848
mov eax, dword [esp + 0xa8]
jmp 0x4b887c
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x18]
movzx esi, byte [eax + ecx]
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x4b8872
call fcn.00501daa
mov edx, dword [edi + 0x44]
lea ecx, [esi + esi*8]
mov eax, dword [edx + ecx*8 + 0x30]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [esp + 0x70]
cmp byte [ecx + 0x14], 0
jne 0x4b8b40
mov eax, 0x100
cmp dword [edi + 0x694], eax
je 0x4b88cf
cmp dword [edi + 0x698], eax
jne 0x4b8b40
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + 4]
mov edx, dword [edx + 0x54]
add eax, 4
push ecx
push eax
lea esi, [ebx + 0x250]
call edx
push eax
call fcn.004a4440
mov edx, dword [esp + 0x80]
mov ebp, eax
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [eax + 4]
add eax, 4
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov dword [esp + 0x38], eax
test ebp, ebp
jge 0x4b891b
xor ebp, ebp
mov eax, dword [ebx + 0x2c8]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax + 4]
add eax, 4
push edx
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edx, dword [esp + 0x38]
push ebp
push edx
xor ecx, ecx
push ecx
push eax
lea eax, [esp + 0x68]
call fcn.00483fe0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
xor eax, eax
sar ecx, 4
mov dword [esp + 0x84], eax
test ecx, ecx
jbe 0x4b8b40
mov dword [esp + 0x24], eax
cmp eax, dword [ebx + 0x290]
jne 0x4b8976
mov ecx, dword [edi + 0x694]
jmp 0x4b897c
mov ecx, dword [edi + 0x698]
cmp ecx, 0x100
jne 0x4b8b16
mov edx, dword [esi + 0x10]
sub edx, dword [esi + 0xc]
sar edx, 4
cmp eax, edx
jb 0x4b899a
call fcn.00501daa
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x34]
lea esi, [esp + 0x48]
call fcn.004a35d0
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x40]
cmp esi, ebp
jne 0x4b89e4
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x44]
je 0x4b8b0f
mov ecx, dword [esp + 0x7c]
call fcn.004ac790
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov ebx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4b8a0f
call fcn.00501daa
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x7c]
lea edx, [ebx + ebx*8]
fld dword [eax + edx*8 + 0x24]
mov eax, dword [ecx + 0x38]
mov ecx, dword [esp + 0x2c]
fstp dword [esp + 0x30]
fld qword [esp + 0xa0]
sub esi, ecx
fstp dword [esp + 0x20]
sub ebp, ecx
fld dword [eax + esi*4]
fld dword [esp + 0x1c]
fld st(0)
faddp st(2)
fld dword [esp + 0x20]
fld st(0)
fsubp st(3)
fild dword [esp + 0x3c]
fld dword [esp + 0x30]
fld st(0)
fmulp st(2)
fxch st(4)
faddp st(1)
fstp dword [esp + 0x48]
fld dword [eax + ebp*4]
faddp st(2)
fsubp st(1)
fild dword [esp + 0x44]
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fld dword [esp + 0x90]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x4b8a8d
fstp dword [esp + 0x48]
jmp 0x4b8a8f
fstp st(0)
fld dword [esp + 0x50]
fld dword [esp + 0x98]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
je 0x4b8aab
fstp dword [esp + 0x50]
jmp 0x4b8aad
fstp st(0)
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x78]
cmp edx, dword [eax + 0x290]
jne 0x4b8ad7
cmp byte [eax + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b8add
lea eax, [edi + 0x690]
jmp 0x4b8add
lea eax, [edi + 0x68c]
mov eax, dword [eax]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x60]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x64]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x38]
call eax
mov ebx, dword [esp + 0x78]
mov eax, dword [esp + 0x84]
mov ecx, dword [ebx + 0x260]
sub ecx, dword [ebx + 0x25c]
add dword [esp + 0x24], 0x10
lea esi, [ebx + 0x250]
inc eax
sar ecx, 4
mov dword [esp + 0x84], eax
cmp eax, ecx
jb 0x4b8966
mov ebp, dword [esp + 0x7c]
jmp 0x4b8b48
fstp st(0)
mov edx, dword [esp + 0x70]
xor esi, esi
cmp byte [edx + 0x14], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x100
jne 0x4b8bb7
mov eax, dword [ebx + 0x2c8]
mov edx, dword [esp + 0x80]
mov ecx, dword [eax + 4]
add eax, 4
inc edx
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ecx, dword [ebp + 0x4c]
dec ecx
cmp dword [esp + 0x8c], ecx
jne 0x4b8ba9
push eax
lea esi, [ebx + 0x250]
call fcn.004a4330
mov dword [esp + 0x14], eax
cmp eax, 1
jne 0x4b8bad
mov edx, dword [edi + 0x694]
mov dword [esp + 0x18], edx
jmp 0x4b8bb7
mov dword [esp + 0x14], esi
mov eax, dword [edi + 0x698]
mov dword [esp + 0x18], eax
cmp byte [esp + 0x13], 0
fldz
fstp dword [esp + 0x2c]
je 0x4b8f1c
mov ecx, dword [esp + 0x7c]
mov eax, dword [ecx + 0x1c]
cmp eax, dword [ecx + 0x18]
mov dword [esp + 0x24], eax
jge 0x4b8f1c
fild dword [esp + 0x88]
fstp dword [esp + 0x1c]
fld qword [esp + 0xa0]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x7c]
fld dword [esp + 0x1c]
mov ecx, dword [eax + 0x38]
fld dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
fld st(1)
fadd dword [ecx + ebp*4]
lea ecx, [ecx + ebp*4]
mov edx, dword [eax + 0x30]
push 0
fsub st(1)
mov esi, edi
fld dword [esp + 0x2c]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x4c]
fld dword [ecx + 4]
mov cl, byte [edx + ebp]
mov edx, dword [eax + 0x34]
faddp st(3)
movzx ebx, byte [edx + ebp]
fxch st(2)
mov edx, dword [esp + 0xac]
fsubrp st(1)
faddp st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fsub dword [esp + 0x4c]
fstp dword [esp + 0x88]
fld dword [esp + 0x88]
mov byte [esp + 0x88], cl
mov ecx, dword [esp + 0xb0]
fadd dword [esp + 0x30]
push ecx
push edx
push eax
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xb4]
push ecx
mov ecx, ebp
call fcn.004b82b0
mov al, byte [esp + 0x9c]
add esp, 0x18
cmp al, 0x80
jae 0x4b8ca7
call fcn.004b5d10
mov ebp, dword [esp + 0x78]
jmp 0x4b8d10
mov esi, dword [esp + 0x7c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x30]
sub eax, ebp
add ecx, ebp
mov ebp, dword [esp + 0x78]
lea edx, [ebp + 0x10]
call fcn.004ace60
test eax, eax
je 0x4b8cf1
cmp dword [eax + 0x18], 0x10
jb 0x4b8cde
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x18]
mov dword [esp + 0x84], edx
mov dword [esp + 0x24], eax
jmp 0x4b8d17
add eax, 4
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x24], eax
jmp 0x4b8d17
movzx ecx, byte [esp + 0x84]
push ecx
lea edx, [esp + 0x3c]
push str.x_2X
push edx
call fcn.00502582
add esp, 0xc
lea eax, [esp + 0x38]
mov dword [esp + 0x84], eax
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x4b8d37
call fcn.00501daa
mov eax, dword [edi + 0x44]
mov esi, dword [esp + 0xa0]
lea edx, [ebx + ebx*8]
mov ecx, dword [eax + edx*8 + 0x2c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4b8e08
cmp byte [edi + 0x67c], 0
je 0x4b8d78
lea eax, [edi + 0x678]
cmp ecx, 1
je 0x4b8d72
lea eax, [edi + 0x688]
mov edx, dword [eax]
mov dword [esp + 0x30], edx
cmp byte [edi + 0x684], 0
je 0x4b8e08
mov eax, dword [ebp + 0x2c8]
mov edx, dword [eax + 0x70]
mov eax, dword [edx + 8]
sub eax, 2
cmp dword [esp + 0x80], eax
jge 0x4b8e08
cmp dword [esp + 0x18], 0x100
jne 0x4b8e00
cmp ecx, 1
jne 0x4b8dc3
cmp byte [ebp + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b8dc9
lea eax, [edi + 0x690]
jmp 0x4b8dc9
lea eax, [edi + 0x68c]
mov eax, dword [eax]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x50]
mov edx, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], esi
mov esi, dword [esp + 0x68]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x38]
call eax
mov esi, dword [esp + 0xa0]
jmp 0x4b8e3b
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx]
jmp 0x4b8e0e
mov eax, dword [esp + 0x74]
mov edx, dword [eax]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov edx, dword [edx + 0x38]
push esi
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x88]
call edx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x18], 0
mov eax, dword [esp + 0x40]
sete cl
movzx edx, cl
mov ecx, dword [esp + 0x94]
push edx
push eax
push esi
mov esi, dword [esp + 0x90]
push ecx
push edi
call fcn.004b84c0
add esp, 0x24
cmp dword [esp + 0x14], 0
je 0x4b8f06
cmp byte [edi + 0x684], 0
je 0x4b8f06
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x2c8]
mov ecx, dword [edx + 0x70]
mov edx, dword [ecx + 8]
sub edx, 2
cmp dword [esp + 0x80], edx
jge 0x4b8f06
mov ecx, dword [esp + 0x18]
cmp ecx, 0x100
je 0x4b8f06
cmp dword [esp + 0x14], 1
jne 0x4b8ed9
cmp byte [eax + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b8edf
lea eax, [edi + 0x690]
jmp 0x4b8edf
lea eax, [edi + 0x68c]
mov eax, dword [eax]
mov edx, dword [esp + 0x4c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edx
mov eax, ecx
mov ecx, esi
call fcn.004b8480
add esp, 0x14
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
inc eax
cmp eax, dword [ecx + 0x18]
mov dword [esp + 0x24], eax
jl 0x4b8bf2
fild dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
fadd dword [esp + 0x34]
fadd dword [esp + 0x28]
fst qword [esp + 0xa0]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x48]
fld dword [edi + 0x66c]
fadd dword [esp + 0x48]
fstp dword [esp + 0x50]
test ecx, ecx
je 0x4b8fda
cmp byte [edi + 0x684], 0
je 0x4b8fda
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x2c8]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 8]
sub edx, 2
cmp dword [esp + 0x80], edx
jge 0x4b8fde
cmp dword [esp + 0x18], 0x100
jne 0x4b8fde
cmp ecx, 1
jne 0x4b8f9f
cmp byte [eax + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b8fa5
lea eax, [edi + 0x690]
jmp 0x4b8fa5
lea eax, [edi + 0x68c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esi]
mov ebp, dword [esp + 0x54]
mov edx, dword [edx + 0x38]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], ebp
call edx
jmp 0x4b917b
mov eax, dword [esp + 0x78]
cmp byte [esp + 0xac], 0
je 0x4b8ff5
mov eax, dword [esp + 0xa8]
push eax
jmp 0x4b90ba
mov eax, dword [eax + 0x2c8]
mov ecx, dword [eax + 0x70]
mov edx, dword [ecx + 8]
sub edx, 2
cmp dword [esp + 0x80], edx
jge 0x4b9048
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x34]
mov edx, dword [eax + 0x18]
movzx ebx, byte [ecx + edx]
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4b903b
call fcn.00501daa
mov ecx, dword [edi + 0x44]
lea eax, [ebx + ebx*8]
mov eax, dword [ecx + eax*8 + 0x30]
push eax
jmp 0x4b90ba
mov esi, dword [esp + 0x7c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x34]
movzx ebx, byte [eax + ecx]
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x4b9076
call fcn.00501daa
mov edx, dword [edi + 0x44]
lea ecx, [ebx + ebx*8]
cmp byte [edx + ecx*8 + 0x34], 0
je 0x4b908f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x34]
movzx ebx, byte [eax + ecx]
jmp 0x4b901b
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
ja 0x4b90b0
call fcn.00501daa
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 0x930]
push ecx
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x78]
mov ebx, dword [esp + 0x50]
mov edx, dword [esi]
mov ebp, dword [esp + 0x58]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], ebp
call edx
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4b917f
cmp byte [edi + 0x684], 0
je 0x4b917f
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x2c8]
mov eax, dword [edx + 0x70]
mov edx, dword [eax + 8]
sub edx, 2
cmp dword [esp + 0x80], edx
jge 0x4b917f
cmp dword [esp + 0x18], 0x100
je 0x4b917f
cmp ecx, 1
jne 0x4b9146
mov eax, dword [esp + 0x78]
cmp byte [eax + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b914c
lea eax, [edi + 0x690]
jmp 0x4b914c
lea eax, [edi + 0x68c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x40]
push 0
push eax
push ecx
push eax
push ecx
mov ecx, dword [esp + 0x5c]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], ebp
call edx
mov ecx, dword [esp + 0x14]
fld dword [esp + 0x50]
fst dword [esp + 0x48]
fld dword [esp + 0x90]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4b919f
fstp dword [esp + 0x48]
jmp 0x4b91a1
fstp st(0)
fld dword [esp + 0x98]
fstp dword [esp + 0x50]
test ecx, ecx
je 0x4b923b
cmp byte [edi + 0x69c], 0
je 0x4b923b
cmp byte [edi + 0x684], 0
je 0x4b923b
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0x2c8]
mov eax, dword [edx + 0x70]
mov edx, dword [eax + 8]
sub edx, 2
cmp dword [esp + 0x80], edx
jge 0x4b923b
cmp dword [esp + 0x18], 0x100
jne 0x4b923b
cmp ecx, 1
jne 0x4b920c
mov eax, dword [esp + 0x78]
cmp byte [eax + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b9212
lea eax, [edi + 0x690]
jmp 0x4b9212
lea eax, [edi + 0x68c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], ebp
call edx
jmp 0x4b93b9
cmp byte [esp + 0xac], 0
je 0x4b9252
mov eax, dword [esp + 0xa8]
push eax
jmp 0x4b9309
mov ecx, dword [esp + 0x7c]
mov edx, dword [ecx + 0x34]
mov eax, dword [ecx + 0x18]
movzx eax, byte [eax + edx]
mov edx, dword [edi + 0x48]
sub edx, dword [edi + 0x44]
mov dword [esp + 0x70], eax
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [esp + 0x70]
cmp eax, edx
jb 0x4b9292
call fcn.00501daa
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
lea edx, [eax + eax*8]
mov eax, dword [edi + 0x44]
cmp byte [eax + edx*8 + 0x34], 0
je 0x4b92de
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x34]
movzx ecx, byte [edx + eax]
mov edx, dword [edi + 0x48]
sub edx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x70], ecx
cmp ecx, eax
jb 0x4b92cd
call fcn.00501daa
mov eax, dword [esp + 0x70]
mov ecx, dword [edi + 0x44]
lea eax, [eax + eax*8]
mov eax, dword [ecx + eax*8 + 0x30]
push eax
jmp 0x4b9309
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
ja 0x4b92ff
call fcn.00501daa
mov eax, dword [edi + 0x44]
mov ecx, dword [eax + 0x930]
push ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 0x38]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, esi
mov dword [eax + 0xc], ebp
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b93b9
cmp byte [edi + 0x69c], 0
je 0x4b93b9
cmp byte [edi + 0x684], 0
je 0x4b93b9
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x2c8]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 8]
sub edx, 2
cmp dword [esp + 0x80], edx
jge 0x4b93b9
cmp dword [esp + 0x18], 0x100
je 0x4b93b9
cmp eax, 1
jne 0x4b938a
cmp byte [ecx + 0x29c], 0
lea eax, [edi + 0x680]
jne 0x4b9390
lea eax, [edi + 0x690]
jmp 0x4b9390
lea eax, [edi + 0x68c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x50]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebp
mov eax, dword [esp + 0x2c]
mov ecx, esi
call fcn.004b8480
add esp, 0x14
test byte [edi + 0x7d8], 1
je 0x4b94aa
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x7c]
inc eax
cmp eax, dword [edx + 0x4c]
jge 0x4b94aa
test eax, eax
jg 0x4b93e3
xor eax, eax
jmp 0x4b93f2
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4b93ef
mov eax, dword [ecx + eax*4]
jmp 0x4b93f2
mov eax, dword [edx + 0x18]
test eax, eax
setne al
test al, al
je 0x4b94aa
test byte [edi + 0x7dc], 1
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ecx
je 0x4b9433
fld qword [esp + 0xa0]
fstp dword [esp + 0x38]
fld dword [edi + 0x66c]
fadd dword [esp + 0x38]
fstp dword [esp + 0x40]
jmp 0x4b9448
fld dword [esp + 0x98]
fst dword [esp + 0x40]
fsub dword [edi + 0x66c]
fstp dword [esp + 0x38]
cmp byte [edi + 0x6a4], 0
je 0x4b9459
mov edi, dword [edi + 0x6a0]
jmp 0x4b9483
mov ecx, dword [edi + 0x48]
sub ecx, dword [edi + 0x44]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
ja 0x4b947a
call fcn.00501daa
mov ecx, dword [edi + 0x44]
mov edi, dword [ecx + 0x92c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x74]
push edi
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebp
mov al, 1
call fcn.004bf490
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x40