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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x30]
test edx, edx
push esi
push edi
je 0x3006764e
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx + 0x6e4]
test eax, eax
je 0x30067646
cmp eax, edx
jne 0x30067646
mov eax, dword [eax + 0x18]
cmp eax, dword [edx + 0x18]
jne 0x30067646
mov eax, dword [ebx + 0x128]
test ah, 0x10
jne 0x30067646
mov eax, dword [ecx + 0x704]
test eax, eax
je 0x30067646
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x30067646
mov eax, 1
jmp 0x30067648
xor eax, eax
mov dword [ebx + 0x1f8], eax
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x200]
push eax
mov ecx, edi
mov dword [esp + 0x28], edi
call fcn.3005aa60
mov ecx, ebx
call fcn.300672e0
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x30067678
mov ecx, ebx
call fcn.3005ee30
mov dword [esp + 0x60], eax
mov al, byte [ebx + 0xec]
test al, al
je 0x3006768e
mov esi, dword [ebx + 0xe8]
jmp 0x30067690
xor esi, esi
test esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0xd0], 0
je 0x300676de
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x300676de
mov ecx, dword [eax + 0x50]
test ecx, ecx
jne 0x300676de
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x300676c4
mov dl, byte [eax]
xor cl, cl
cmp cl, dl
sbb eax, eax
neg eax
jmp 0x300676c6
xor eax, eax
mov ecx, dword [ebx + 0xe8]
lea edx, [esp + 0xd0]
push edx
push eax
push 0
push 1
call fcn.300b5650
test esi, esi
mov byte [esp + 0x1b], 0
mov dword [esp + 0xa0], 0
je 0x3006772a
mov ecx, esi
call fcn.300b6670
cmp eax, 1
jne 0x3006772a
mov eax, dword [ebx + 0x310]
cmp eax, 3
je 0x3006770e
cmp eax, 2
jne 0x3006772a
mov ecx, esi
mov byte [esp + 0x1b], 1
call fcn.300b6670
push 2
mov ecx, esi
mov dword [esp + 0xa4], eax
call fcn.300b4c60
mov esi, dword [ebx + 0x30]
xor ecx, ecx
xor eax, eax
cmp esi, ecx
mov byte [esp + 0xe], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
je 0x3006778f
cmp dword [ebx + 0x108], 1
jne 0x300677c7
fld dword [0x302fd40c]
fld dword [ebx + 0xf4]
fucompp
fnstsw ax
test ah, 0x44
jp 0x3006778a
fld dword [ebx + 0xf8]
fld qword [0x30293678]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x300677d7
mov byte [esp + 0xe], 0
mov eax, dword [ebx + 0x128]
shr eax, 8
test al, 1
jne 0x300678a7
lea ecx, [ebx + 0xf0]
push ecx
call fcn.30078960
add esp, 4
test eax, eax
jne 0x3006788a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0xf4], ecx
jne 0x3006778a
cmp dword [ebx + 0xf8], ecx
jne 0x3006778a
mov eax, dword [ebx + 0x128]
shr eax, 8
test al, 1
mov byte [esp + 0xe], 1
je 0x3006778f
lea esp, [esp]
mov ecx, dword [ebx + 0x30]
call fcn.300d20d0
cmp esi, dword [eax + 0xe0]
je 0x3006778a
mov ecx, esi
call fcn.30085070
test eax, eax
je 0x3006781b
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0x24]
mov al, byte [edx + 0x139]
test al, al
jne 0x30067846
mov ecx, esi
call fcn.30085070
test eax, eax
je 0x3006783a
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x24]
mov edx, dword [ecx + 0x378]
shr edx, 3
test dl, 1
jne 0x30067853
mov esi, dword [esi + 8]
test esi, esi
jne 0x300677f0
jmp 0x3006778a
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x24]
add eax, 0x144
jmp 0x3006785e
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x24]
add eax, 0x1e4
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x90], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x94], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
jmp 0x3006778f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x300678a7
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, edi
call fcn.3002aeb0
mov eax, dword [ebx + 0x128]
test eax, 0x200800
mov ecx, dword [ebp + 0x14]
je 0x3006796e
lea edx, [ebx + 0x140]
mov esi, dword [edx]
mov dword [esp + 0x48], esi
mov esi, dword [edx + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [edx + 8]
mov edx, dword [edx + 0xc]
shr eax, 8
test al, 1
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edx
jne 0x3006791b
test ecx, ecx
je 0x30067904
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
jmp 0x3006791b
lea edx, [esp + 0x48]
push edx
mov eax, edx
push eax
lea ecx, [ebx + 0xf0]
push ecx
call fcn.30077da0
add esp, 0xc
mov eax, dword [ebx + 0x128]
mov ecx, dword [ebx + 0xdc]
mov edx, eax
and edx, 0x200000
sub edx, 0x200000
neg edx
sbb edx, edx
and eax, 0x800
sub eax, 0x800
inc edx
push edx
mov edx, dword [esp + 0x58]
neg eax
sbb eax, eax
inc eax
push eax
mov eax, dword [ebx + 0xe0]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x5c]
push eax
push ecx
push edx
mov ecx, edi
call fcn.3005c590
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x300679b0
mov eax, dword [ebx + 0x128]
shr eax, 8
test al, 1
je 0x3006798d
mov ecx, ebx
call fcn.30063ce0
test eax, eax
je 0x300679b0
mov ecx, dword [ebx + 0x13c]
mov edx, dword [ebx + 0x134]
mov eax, dword [ebx + 0x138]
push ecx
mov ecx, dword [ebx + 0x130]
push edx
push eax
push ecx
mov ecx, edi
call fcn.3002aeb0
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
or esi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], esi
jne 0x300679da
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x80]
push ecx
push eax
mov ecx, ebx
call fcn.3005dbc0
mov eax, dword [ebx + 0x154]
test eax, eax
mov edx, dword [ebx + 0x138]
mov dword [esp + 0x10], edx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], esi
je 0x30067a1c
mov ecx, ebx
call fcn.300616c0
cmp dword [ebx + 0x154], eax
jle 0x30067a1c
mov dword [ebx + 0x154], eax
mov esi, dword [ebx + 0x154]
push 0
push esi
mov ecx, ebx
call fcn.3005dc60
mov ecx, dword [ebx + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 8]
cmp ecx, eax
mov dword [esp + 0x74], ecx
jl 0x30067a48
mov dword [esp + 0x74], eax
mov dword [esp + 0x5c], ecx
jg 0x30067a4c
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x170]
mov edi, esi
cmp edi, eax
mov dword [esp + 0x28], edi
jge 0x30068539
jmp 0x30067a70
mov edi, dword [esp + 0x28]
jmp 0x30067a70
mov eax, dword [ebx + 0x16c]
mov esi, dword [eax + edi*4]
lea ecx, [esp + 0xd4]
push ecx
push edi
mov ecx, ebx
mov dword [esp + 0x38], esi
call fcn.30060c10
mov eax, dword [esi + 0x1c]
test eax, eax
mov dword [esp + 0x34], eax
je 0x30067ab6
mov ecx, eax
mov eax, dword [esi + 4]
lea edx, [ecx + ecx*2]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x30067ab1
cmp ax, 0xd
jne 0x30067ab6
dec ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xd8]
mov eax, dword [esp + 0x10]
add ecx, edx
lea esi, [ecx + eax]
cmp esi, dword [ebx + 0x13c]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xb0], esi
jle 0x30067aef
cmp edi, dword [ebx + 0x154]
jg 0x300684e2
mov al, byte [esp + 0xe]
test al, al
mov byte [esp + 0xf], 0
je 0x30067b6a
mov ecx, dword [ebx + 0x128]
shr ecx, 8
test cl, 1
je 0x30067b3c
lea edx, [esp + 0x64]
push edx
mov eax, edx
push eax
lea ecx, [ebx + 0xf0]
push ecx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], esi
call fcn.30077890
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x74]
add esp, 0xc
cmp eax, edx
jmp 0x30067b63
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x30067b6a
mov ecx, dword [ebx + 0x30]
call fcn.300d20d0
mov ecx, dword [eax + 0x108]
test ecx, ecx
jne 0x30067b6a
mov ecx, dword [ebx + 0x30]
call fcn.300d20e0
cmp esi, dword [eax + 0xa0]
jge 0x30067b6a
mov byte [esp + 0xf], 1
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x14], eax
jle 0x30068342
jmp 0x30067ba0
mov eax, dword [esp + 0x14]
jmp 0x30067ba0
mov cl, byte [ebx + 0x161]
xor edx, edx
test cl, cl
mov dword [esp + 0x70], eax
mov dword [esp + 0x58], edx
je 0x30067bdd
mov ecx, dword [ebx + 0x1f8]
test ecx, ecx
je 0x30067bdd
mov ecx, dword [esp + 0x7c]
cmp ecx, dword [esp + 0x28]
jne 0x30067bdd
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
add ecx, esi
lea esi, [ecx - 1]
mov dword [esp + 0x74], esi
mov dword [esp + 0x5c], ecx
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x88], 0xffffffff
jge 0x30068342
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 4]
lea edi, [eax + esi]
lea esi, [eax + eax*2]
shl esi, 1
mov dword [esp + 0x6c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], edi
lea esi, [esi + ecx - 6]
jmp 0x30067c20
mov edx, dword [esp + 0x58]
jmp 0x30067c20
cmp word [esi + 6], 9
jne 0x30067c43
test byte [ebx + 0x128], 0x10
jne 0x30067c43
cmp edx, 2
je 0x30067cf7
mov dword [esp + 0x58], 1
jmp 0x30067c54
cmp edx, 1
je 0x30067cf7
mov dword [esp + 0x58], 2
movzx edx, word [esi + 8]
cmp edx, dword [esp + 0x40]
jne 0x30067cca
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
jne 0x30067c70
mov cl, byte [ebx + 0x161]
test cl, cl
je 0x30067c92
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x30067c81
cmp edi, dword [esp + 0x74]
je 0x30067cdf
mov ecx, dword [esp + 0xa8]
test ecx, ecx
jne 0x30067c92
cmp edi, dword [esp + 0x5c]
je 0x30067cec
mov ecx, dword [esp + 0x60]
inc eax
inc edi
add esi, 6
cmp ecx, 8
jl 0x30067cbe
mov edx, dword [esp + 0x20]
movzx ecx, word [edx + 4]
mov edx, dword [ebx + 0x1d4]
imul ecx, ecx, 0x3c
cmp dword [ecx + edx + 8], 3
jne 0x30067cbe
cmp word [esi], 0x20
je 0x30067cf7
cmp eax, dword [esp + 0x34]
jl 0x30067c17
jmp 0x30067cf7
mov edx, dword [esp + 0x20]
lea ecx, [eax + eax*2]
movzx ecx, word [edx + ecx*2 + 2]
mov dword [esp + 0x88], ecx
jmp 0x30067cf7
mov dword [esp + 0xa4], 1
jmp 0x30067cf7
mov dword [esp + 0xa8], 1
cmp dword [esp + 0x70], eax
mov dword [esp + 0x14], eax
je 0x30068324
mov ecx, dword [esp + 0x74]
fld qword [0x302970a0]
mov edx, dword [esp + 0x44]
fstp qword [esp + 0x48]
cmp edx, ecx
mov dword [esp + 0x1c], 0
jl 0x30067d3b
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
add esi, eax
cmp esi, dword [esp + 0x5c]
jg 0x30067d3b
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov edi, dword [ebx + 4]
sub esi, eax
cmp edi, dword [ebx + 8]
mov dword [esp + 0x44], esi
je 0x30067d8e
cmp edx, ecx
jne 0x30067d8e
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push eax
push ecx
mov ecx, ebx
mov dword [esp + 0xa0], 1
call fcn.30062e20
fst qword [esp + 0x48]
call fcn.3002ddb0
mov edx, dword [esp + 0x10]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], edx
test byte [ebx + 0x128], 0x10
je 0x30067ded
lea esi, [esi + esi*2]
shl esi, 1
push esi
call fcn.3007a1f0
add esp, 4
test eax, eax
mov dword [esp + 0x38], eax
je 0x30068324
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
mov ecx, esi
mov esi, dword [eax + 4]
mov eax, ecx
add esi, edx
mov edx, dword [esp + 0x38]
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x44]
test ecx, ecx
jle 0x30067dfe
mov eax, edx
mov edi, edi
mov word [eax], 0x2a
add eax, 6
dec ecx
jne 0x30067de0
jmp 0x30067dfe
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov edx, eax
test edx, edx
je 0x30068324
fld qword [0x302970a0]
fld qword [esp + 0x48]
fucompp
fnstsw ax
test ah, 0x44
jp 0x30067e34
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.30062e20
fstp qword [esp + 0x48]
mov esi, dword [esp + 0x40]
mov edi, dword [ebx + 0x1d0]
imul esi, esi, 0x74
mov ecx, dword [esp + 0x1c]
xor eax, eax
add edi, esi
cmp ecx, eax
mov dword [esp + 0x6c], esi
mov dword [esp + 0xac], eax
mov dword [esp + 0x20], eax
jne 0x30067e62
test byte [edi + 0x54], 8
je 0x30067e88
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0xac]
push ecx
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.30062e20
call fcn.3002ddb0
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x28]
push edi
call fcn.3002c830
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x30068087
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
add edx, eax
cmp edx, dword [esp + 0x5c]
jge 0x30067ec7
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x10]
add ecx, edx
mov dword [esp + 0xb0], ecx
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x30067ede
mov ecx, dword [eax + 0x6e4]
cmp ecx, dword [ebx + 0x30]
mov esi, 0xff000000
je 0x30067ee3
mov esi, 0xff555555
mov ecx, dword [eax + 0x7a0]
cmp ecx, 0xffffff
ja 0x30067f11
movzx edx, byte [eax + 0x7a1]
movzx esi, cl
or esi, 0xffffff00
shl esi, 8
shr ecx, 0x10
or esi, edx
movzx eax, cl
shl esi, 8
or esi, eax
fld qword [esp + 0x48]
mov edi, dword [ebx + 0x158]
call fcn.3002ddb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
sub eax, edi
sub ecx, edi
add ecx, dword [esp + 0xac]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc0], ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 0xc4], edx
push ecx
mov edx, ecx
mov dword [esp + 0xcc], eax
push edx
lea eax, [ebx + 0x130]
push eax
call fcn.30077350
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd0]
add esp, 0xc
push esi
push ecx
mov ecx, dword [esp + 0xc4]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.3005c4e0
cmp dword [esp + 0x58], 2
jne 0x30068145
mov eax, dword [ebx + 0x38]
mov ecx, dword [eax + 0x79c]
or esi, 0xffffffff
cmp ecx, 0xffffff
ja 0x30067fd9
movzx edx, byte [eax + 0x79d]
movzx esi, cl
or esi, 0xffffff00
shl esi, 8
shr ecx, 0x10
or esi, edx
movzx eax, cl
shl esi, 8
or esi, eax
mov al, byte [esp + 0xf]
test al, al
mov edi, dword [esp + 0x2c]
jne 0x30068149
test edi, edi
mov dword [esp + 0x1c], 2
je 0x3006802c
mov ecx, edi
call fcn.300b6670
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov ecx, dword [ebx + 0x1d4]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + 4]
imul eax, eax, 0x3c
mov edx, dword [eax + ecx + 8]
test edx, edx
je 0x3006802c
cmp dword [esp + 0x1c], 1
jne 0x3006802c
push 2
mov ecx, edi
call fcn.300b4c60
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x30068038
mov eax, dword [eax + 0x50]
jmp 0x3006803a
xor eax, eax
mov edx, dword [esp + 0x44]
fild dword [ebx + 0x158]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x3c]
fsubr qword [esp + 0x4c]
push edi
push esi
push edx
mov edx, dword [esp + 0xe8]
push eax
add edx, ecx
mov ecx, dword [esp + 0x38]
push edx
sub esp, 8
fstp qword [esp]
call fcn.3005bc30
test edi, edi
je 0x30068149
mov eax, dword [esp + 0x1c]
push eax
mov ecx, edi
call fcn.300b4c60
jmp 0x30068149
mov ecx, dword [esp + 0x58]
mov eax, 2
cmp ecx, eax
jne 0x30068145
mov cl, byte [esp + 0xf]
test cl, cl
jne 0x30068145
mov edi, dword [esp + 0x2c]
test edi, edi
mov dword [esp + 0x1c], eax
je 0x300680e7
mov ecx, edi
call fcn.300b6670
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
mov ecx, dword [ebx + 0x1d4]
mov dword [esp + 0x1c], eax
movzx eax, word [edx + 4]
imul eax, eax, 0x3c
mov edx, dword [eax + ecx + 8]
test edx, edx
je 0x300680e7
cmp dword [esp + 0x1c], 1
jne 0x300680e7
push 2
mov ecx, edi
call fcn.300b4c60
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x300680f3
mov ecx, dword [eax + 0x50]
jmp 0x300680f5
xor ecx, ecx
mov edx, dword [ebx + 0x1d0]
fild dword [ebx + 0x158]
mov eax, dword [edx + esi + 0x58]
mov edx, dword [esp + 0x10]
fsubr qword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x3c]
push edi
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x38]
add eax, edx
push eax
sub esp, 8
fstp qword [esp]
call fcn.3005bc30
test edi, edi
je 0x30068149
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.300b4c60
jmp 0x30068149
mov edi, dword [esp + 0x2c]
test byte [ebx + 0x128], 0x10
je 0x3006815f
mov edx, dword [esp + 0x38]
push edx
call fcn.30208320
add esp, 4
mov eax, dword [ebx + 0x1d0]
mov ecx, dword [esp + 0x6c]
add ecx, eax
test byte [ecx + 0x54], 8
je 0x300681d2
mov eax, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
mov esi, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [ebx + 0x134]
sar eax, 1
add eax, edi
mov edi, dword [ecx + 0x58]
mov ecx, dword [esp + 0x20]
add eax, esi
mov esi, dword [ebx + 0x158]
sub ecx, esi
cmp edx, ecx
jge 0x300681a7
mov ecx, edx
mov edx, dword [esp + 0x24]
fld qword [esp + 0x48]
mov edx, dword [edx]
push 0
push edi
push eax
push ecx
push eax
mov dword [esp + 0x34], edx
call fcn.3002ddb0
mov ecx, dword [esp + 0x38]
sub eax, esi
push eax
mov eax, dword [esp + 0x38]
call dword [eax + 4]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x30068324
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
movzx edx, word [ecx + 4]
mov eax, dword [ebx + 0x1d4]
imul edx, edx, 0x3c
mov ecx, dword [edx + eax + 0x2c]
test ecx, ecx
je 0x30068324
mov eax, dword [esp + 0x28]
test eax, eax
je 0x30068232
mov ecx, dword [ebx + 0x16c]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x30068232
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x30068232
cmp ax, 0xd
jne 0x30068324
push 0
push 0x168
mov ecx, ebx
call fcn.30060a60
fld qword [esp + 0x48]
mov esi, eax
call fcn.3002ddb0
mov edx, dword [ebx + 0x158]
mov ecx, dword [esp + 0x30]
sub eax, edx
sub eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 4]
mov edx, dword [eax]
xor ecx, ecx
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x60]
mov ax, word [eax + 4]
cmp edx, 6
setl cl
mov word [esp + 0xb8], ax
mov eax, dword [ebx + 0x2c]
dec ecx
and ecx, 0x1f8d
add ecx, 0x95
test eax, eax
mov word [esp + 0xb4], cx
jne 0x300682a4
mov ecx, ebx
call fcn.3005ee30
cmp eax, 8
jl 0x300682e3
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
jne 0x300682d4
cmp dword [esp + 0x40], 0xffffffff
jne 0x300682c4
mov eax, dword [ebx + 0xc0]
jmp 0x300682e8
mov edx, dword [ebx + 0x1d0]
mov eax, dword [esp + 0x6c]
mov eax, dword [edx + eax + 0x58]
jmp 0x300682e8
mov ecx, dword [ebx + 0x1d0]
imul eax, eax, 0x74
mov eax, dword [eax + ecx + 0x58]
jmp 0x300682e8
mov eax, 0xff000000
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x300682f4
mov ecx, dword [ecx + 0x50]
jmp 0x300682f6
xor ecx, ecx
fild dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0xe4]
push 1
lea edx, [esp + 0xc4]
push edx
add eax, ecx
mov ecx, dword [esp + 0x38]
push eax
sub esp, 8
fstp qword [esp]
call fcn.3005bc30
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
je 0x30068334
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x14], edx
jl 0x30067b94
mov eax, dword [ebx + 0x128]
test al, 8
jne 0x30068429
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
jne 0x30068429
test eax, 0x10000
jne 0x30068429
mov al, byte [ebx + 0x161]
test al, al
jne 0x30068429
mov eax, dword [ebx + 0x1f8]
test eax, eax
je 0x30068429
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x7c], eax
jne 0x30068429
mov ecx, dword [esp + 0x78]
mov edi, dword [ebx + 0x134]
mov esi, dword [ebx + 0x130]
push 0
push 0
push 0
push ecx
mov edx, eax
push edx
mov ecx, ebx
call fcn.30062e20
call fcn.3002ddb0
sub eax, dword [ebx + 0x158]
cmp esi, eax
jg 0x300683c2
mov esi, eax
cmp esi, edi
jl 0x300683c8
mov esi, edi
cmp dword [esp + 0x60], 9
jl 0x300683d7
mov eax, dword [ebx + 0xc0]
jmp 0x300683f5
mov eax, dword [esp + 0x40]
cmp eax, 0xffffffff
jne 0x300683e8
mov eax, dword [ebx + 0xc0]
jmp 0x300683f5
mov ecx, dword [ebx + 0x1d0]
imul eax, eax, 0x74
mov eax, dword [eax + ecx + 0x58]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 1
push eax
mov eax, dword [esp + 0xd4]
push eax
push esi
push edi
push esi
call dword [edx + 4]
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x8c], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xe4]
mov ecx, dword [ebx + 0x13c]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x300684e2
mov al, byte [esp + 0xe]
test al, al
je 0x300684ba
mov ecx, dword [ebx + 0x128]
shr ecx, 8
test cl, 1
je 0x30068494
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x64]
push eax
mov ecx, eax
mov dword [esp + 0x6c], edx
push ecx
lea edx, [ebx + 0xf0]
push edx
mov dword [esp + 0x70], 0
call fcn.30077890
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x74]
add esp, 0xc
cmp ecx, eax
jmp 0x300684b8
mov ecx, dword [ebx + 0x30]
call fcn.300d20d0
mov ecx, dword [eax + 0x108]
test ecx, ecx
jne 0x300684ba
mov ecx, dword [ebx + 0x30]
call fcn.300d20e0
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax + 0xa4]
jg 0x300684e2
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x1c]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ebx + 0x170]
add esi, eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x28], eax
jl 0x30067a62
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x30068539
mov ecx, dword [ebx + 0x30]
test ecx, ecx
mov byte [ebx + 0x160], 1
mov eax, 4
je 0x30068508
call fcn.300d20e0
mov eax, dword [eax + 0x38]
mov edx, dword [esp + 0x24]
lea ecx, [ebx + 0x68]
push ecx
mov ecx, dword [esp + 0x84]
push edx
mov edx, dword [esp + 0x8c]
push eax
lea eax, [ebx + 0xf0]
push eax
push ecx
push edx
push ebx
call fcn.3002bfb0
add esp, 0x1c
mov byte [ebx + 0x160], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov al, byte [esp + 0x1b]
test al, al
je 0x3006855b
mov ecx, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.300b4c60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10