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

Disassembly:
mov eax, 0x8bc0b3
call fcn.00879bb8
sub esp, 0x20
and dword [ebp - 0x14], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push dword [ebx + 0x20]
lea eax, [ebx + 0x18]
push eax
mov esi, ecx
call fcn.00413367
pop ecx
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
mov edx, esi
xor ecx, ecx
mov dword [ebp - 0x10], eax
call fcn.004133b5
lea edx, [esi + 0x30]
xor ecx, ecx
mov dword [esi + 8], eax
call fcn.004133b5
mov dword [esi + 0x38], eax
push dword [ebx + 0x44]
lea edi, [ebx + 0x3c]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x60]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0x68], eax
push dword [ebx + 0x44]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x90]
mov ecx, eax
call fcn.004133b5
cmp dword [ebp - 0x10], 5
mov dword [esi + 0x98], eax
jne 0x663931
push dword [ebx + 0x20]
lea edi, [ebx + 0x18]
push edi
call fcn.00413367
pop ecx
pop ecx
push 0xa
cdq
pop ecx
idiv ecx
cmp eax, 0x33
jne 0x663840
push dword [ebx + 0x50]
lea edi, [ebx + 0x48]
push edi
call fcn.00413367
push dword [ebx + 0x38]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x10]
fild dword [ebp + 0xc]
cdq
sub eax, edx
fmul qword [0x8ed708]
sar eax, 1
mov dword [ebp + 0xc], eax
add esp, 0x10
fild dword [ebp + 0xc]
faddp st(1)
call fcn.0087ac9c
lea edx, [esi + 0xf0]
mov ecx, eax
jmp 0x6638d4
push dword [ebx + 0x20]
push edi
call fcn.00413367
pop ecx
pop ecx
push 0xa
pop ecx
cdq
idiv ecx
push dword [ebx + 0x50]
lea edi, [ebx + 0x48]
push edi
cmp eax, 0x34
jne 0x66388e
call fcn.00413367
push dword [ebx + 0x38]
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
add esp, 0x10
cdq
push 8
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
lea edx, [esi + 0xf0]
jmp 0x6638d4
call fcn.00413367
push dword [ebx + 0x38]
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
add esp, 0x10
cdq
push 4
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
lea edx, [esi + 0xf0]
mov dword [ebp + 0xc], ecx
call fcn.004133b5
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xf8], eax
lea edx, [esi + 0xf0]
call fcn.004133b5
mov dword [esi + 0xf8], eax
push dword [ebx + 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.00413367
pop ecx
pop ecx
push 0xa
cdq
pop ecx
idiv ecx
cmp eax, 0x33
jne 0x6639c4
push dword [ebx + 0x38]
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
push dword [ebx + 0x50]
mov dword [ebp + 0xc], eax
push edi
call fcn.00413367
fild dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
add esp, 0x10
fmul qword [0x8ecb40]
fild dword [ebp - 0x10]
fmul qword [0x8ed700]
jmp 0x663a5e
push dword [ebx + 0x50]
lea edi, [ebx + 0x48]
push edi
call fcn.00413367
push dword [ebx + 0x38]
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
mov ecx, eax
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
mov dword [ebp + 0xc], eax
mov eax, ecx
add esp, 0x10
push 4
cdq
pop ecx
idiv ecx
sar dword [ebp + 0xc], 1
mov ecx, dword [ebp + 0xc]
lea edx, [esi + 0xf0]
add ecx, eax
call fcn.004133b5
cmp dword [ebp - 0x10], 3
mov dword [esi + 0xf8], eax
je 0x663a2e
cmp dword [ebp - 0x10], 4
je 0x663a2e
push dword [ebx + 0x38]
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
push dword [ebx + 0x50]
mov dword [ebp + 0xc], eax
push edi
call fcn.00413367
fild dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
add esp, 0x10
fmul qword [0x8e89c8]
fild dword [ebp - 0x10]
fmul qword [0x8e89d0]
jmp 0x663a5e
push dword [ebx + 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.00413367
pop ecx
pop ecx
push 0xa
cdq
pop ecx
idiv ecx
push dword [ebx + 0x38]
cmp eax, 0x34
lea eax, [ebx + 0x30]
push eax
jne 0x663a09
call fcn.00413367
push dword [ebx + 0x50]
mov dword [ebp - 0x10], eax
push edi
call fcn.00413367
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
add esp, 0x10
fmul qword [0x8ed700]
fild dword [ebp - 0x10]
jmp 0x663a58
call fcn.00413367
push dword [ebx + 0x50]
mov dword [ebp - 0x10], eax
push edi
call fcn.00413367
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
add esp, 0x10
fmul qword [0x8ed700]
fild dword [ebp - 0x10]
jmp 0x663a58
push dword [ebx + 0x38]
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
push dword [ebx + 0x50]
mov dword [ebp - 0x10], eax
push edi
call fcn.00413367
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
add esp, 0x10
fmul qword [0x8ed700]
fild dword [ebp - 0x10]
fmul qword [0x8ecb60]
faddp st(1)
call fcn.0087ac9c
lea edx, [esi + 0xc0]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0xc8], eax
push dword [ebx + 0x44]
lea eax, [ebx + 0x3c]
push eax
call fcn.00413367
push dword [ebx + 0x38]
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x30]
push eax
call fcn.00413367
push dword [ebx + 0x50]
mov dword [ebp + 0xc], eax
push edi
call fcn.00413367
mov ecx, dword [ebp + 0xc]
add ecx, eax
add ecx, dword [ebp - 0x10]
add esp, 0x18
lea edx, [esi + 0x120]
call fcn.004133b5
push 0x64
lea edx, [esi + 0x150]
pop ecx
mov dword [esi + 0x128], eax
call fcn.004133b5
push 0x64
lea edx, [esi + 0x180]
pop ecx
mov dword [esi + 0x158], eax
call fcn.004133b5
push dword [ebp + 8]
mov dword [esi + 0x188], eax
call fcn.00652ec0
or dword [ebp + 0xc], 0xffffffff
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffd0
jge 0x663b07
mov edi, dword [ebp + 0x18]
lea ecx, [eax*8 + 0x180]
jmp 0x663b0f
mov edi, dword [ebp + 0x14]
mov ecx, eax
shl ecx, 3
sub edi, ecx
cmp dword [edi + 4], 0
jne 0x663ba6
cmp eax, 0xfffffff5
jne 0x663df7
push dword [ebx + 0x20]
lea eax, [ebx + 0x18]
push eax
call fcn.00413367
pop ecx
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 5
jne 0x663df7
push dword [ebx + 0x14]
lea edi, [ebx + 0xc]
push edi
call fcn.00413367
cmp eax, 0x1e
pop ecx
pop ecx
jg 0x663b73
push dword [ebx + 0x14]
push edi
call fcn.00413367
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
pop ecx
pop ecx
fmul qword [0x8ed6f8]
fadd qword [0x8ecb38]
jmp 0x663b79
fld qword [0x8ed6f0]
push dword [esi + 8]
fstp qword [ebp - 0x28]
push esi
call fcn.00413367
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
pop ecx
pop ecx
fadd qword [ebp - 0x28]
call fcn.0087ac9c
mov edx, esi
mov ecx, eax
call fcn.004133b5
mov dword [esi + 8], eax
jmp 0x663df7
cmp eax, 0xffffffe2
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffda
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffe1
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffd9
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffe0
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffd8
je 0x663df7
mov ecx, esi
call fcn.004bf0d4
test eax, eax
jne 0x663c0a
cmp dword [ebp + 0xc], 0xffffffee
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffed
je 0x663df7
cmp dword [ebp + 0xc], 0xffffffec
je 0x663df7
push dword [esi + 8]
mov edi, dword [edi + 4]
push esi
call fcn.00413367
push dword [edi + 0x68]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x64]
push eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
mov edx, esi
call fcn.004133b5
cmp dword [ebp + 0xc], 0xfffffff6
mov dword [esi + 8], eax
push dword [edi + 0x78]
lea eax, [edi + 0x74]
push eax
jne 0x663c5b
call fcn.0045f084
movsx eax, ax
imul eax, dword [ebp - 0x20]
pop ecx
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
jmp 0x663c65
call fcn.0045f084
pop ecx
pop ecx
movsx eax, ax
push dword [esi + 0x38]
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x30]
push eax
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
add ecx, eax
lea edx, [esi + 0x30]
call fcn.004133b5
push dword [esi + 0x68]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x60]
push eax
call fcn.00413367
push dword [edi + 0x70]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x6c]
push eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
lea edx, [esi + 0x60]
call fcn.004133b5
push dword [esi + 0x98]
mov dword [esi + 0x68], eax
lea eax, [esi + 0x90]
push eax
call fcn.00413367
push dword [edi + 0x80]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x7c]
push eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
lea edx, [esi + 0x90]
call fcn.004133b5
push dword [esi + 0xc8]
mov dword [esi + 0x98], eax
lea eax, [esi + 0xc0]
push eax
call fcn.00413367
push dword [edi + 0x88]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x84]
push eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
lea edx, [esi + 0xc0]
call fcn.004133b5
push dword [esi + 0xf8]
mov dword [esi + 0xc8], eax
lea eax, [esi + 0xf0]
push eax
call fcn.00413367
push dword [edi + 0x90]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x8c]
push eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
lea edx, [esi + 0xf0]
call fcn.004133b5
push dword [esi + 0x158]
mov dword [esi + 0xf8], eax
lea eax, [esi + 0x150]
push eax
call fcn.00413367
push dword [edi + 0xa0]
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x9c]
push eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
lea edx, [esi + 0x150]
call fcn.004133b5
push dword [esi + 0x188]
mov dword [esi + 0x158], eax
lea eax, [esi + 0x180]
push eax
call fcn.00413367
push dword [edi + 0xa8]
add edi, 0xa4
push edi
mov dword [ebp - 0x10], eax
call fcn.0045f084
movsx ecx, ax
add ecx, dword [ebp - 0x10]
add esp, 0x10
lea edx, [esi + 0x180]
call fcn.004133b5
mov dword [esi + 0x188], eax
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xffffffa0
jge 0x663af3
mov ecx, dword [0x973a98]
push 0x97b134
push 0x2dc6c0
push dword [ebp + 8]
call fcn.00650dae
test eax, eax
mov dword [ebp + 0xc], eax
je 0x663e6d
push dword [esi + 0xc8]
lea edi, [esi + 0xc0]
push edi
call fcn.00413367
pop ecx
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [0x97b134]
mov dword [ebp + 0x18], eax
call fcn.006509a1
push dword [eax + 0x144]
add eax, 0x13c
push eax
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov edx, edi
call fcn.004133b5
mov dword [esi + 0xc8], eax
mov ecx, dword [0x973a98]
push 0x97b138
push 0x3d0900
push dword [ebp + 8]
call fcn.00650dae
test eax, eax
mov dword [ebp + 0xc], eax
je 0x663f24
push dword [esi + 0xc8]
lea edi, [esi + 0xc0]
push edi
call fcn.00413367
pop ecx
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [0x97b138]
mov dword [ebp + 0x18], eax
call fcn.006509a1
push dword [eax + 0x144]
add eax, 0x13c
push eax
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov edx, edi
call fcn.004133b5
push dword [esi + 0xf8]
lea edi, [esi + 0xf0]
push edi
mov dword [esi + 0xc8], eax
call fcn.00413367
pop ecx
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [0x97b138]
mov dword [ebp + 0x18], eax
call fcn.006509a1
push dword [eax + 0x150]
add eax, 0x148
push eax
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov edx, edi
call fcn.004133b5
mov dword [esi + 0xf8], eax
mov ecx, dword [0x973a98]
push 0x97b13c
push 0x4c4b40
push dword [ebp + 8]
call fcn.00650dae
test eax, eax
mov dword [ebp + 0xc], eax
je 0x663fdb
push dword [esi + 0xc8]
lea edi, [esi + 0xc0]
push edi
call fcn.00413367
pop ecx
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [0x97b13c]
mov dword [ebp + 0x18], eax
call fcn.006509a1
push dword [eax + 0x144]
add eax, 0x13c
push eax
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov edx, edi
call fcn.004133b5
push dword [esi + 0xf8]
lea edi, [esi + 0xf0]
push edi
mov dword [esi + 0xc8], eax
call fcn.00413367
pop ecx
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [0x97b13c]
mov dword [ebp + 0x18], eax
call fcn.006509a1
push dword [eax + 0x150]
add eax, 0x148
push eax
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
add ecx, eax
mov edx, edi
call fcn.004133b5
mov dword [esi + 0xf8], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x5c]
xor edi, edi
cmp eax, edi
je 0x663fec
add eax, 0xc
jmp 0x663fff
push edi
lea ecx, [ebp - 0x2c]
call fcn.0048b92c
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], edi
mov ecx, eax
call fcn.0045e2eb
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x14], 1
mov dword [ebp + 0xc], eax
je 0x664025
cmp dword [ebp - 0x24], edi
je 0x664025
push dword [ebp - 0x24]
mov ecx, 0x97bac0
call fcn.00402b41
push dword [ebx + 0x20]
xor eax, eax
lea edi, [ebx + 0x18]
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x14], eax
call fcn.00413367
pop ecx
pop ecx
push 0x64
cdq
pop ecx
idiv ecx
cmp eax, 3
je 0x664075
push dword [ebx + 0x20]
push edi
call fcn.00413367
pop ecx
pop ecx
push 0xa
cdq
pop ecx
idiv ecx
cmp eax, 0x29
je 0x664075
push dword [ebx + 0x20]
push edi
call fcn.00413367
pop ecx
pop ecx
push 0xa
cdq
pop ecx
idiv ecx
cmp eax, 0x34
jne 0x66407c
mov dword [ebp + 0x14], 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00652c29
add esp, 0x18
test eax, eax
je 0x6640db
push dword [esi + 0xc8]
lea edi, [esi + 0xc0]
push edi
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
add ecx, eax
mov edx, edi
call fcn.004133b5
push dword [esi + 8]
mov dword [esi + 0xc8], eax
push esi
call fcn.00413367
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov edx, esi
call fcn.004133b5
mov dword [esi + 8], eax
push dword [esi + 0x158]
lea edi, [esi + 0x150]
push edi
call fcn.00413367
push dword [ebp + 8]
mov ebx, eax
call fcn.00653c22
add eax, ebx
add esp, 0xc
mov edx, edi
mov ecx, eax
call fcn.004133b5
mov ebx, dword [ebp + 0x10]
mov dword [esi + 0x158], eax
push dword [ebx + 0x38]
lea edi, [ebx + 0x30]
push edi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x664137
push dword [ebx + 0x38]
push edi
call fcn.00413367
pop ecx
pop ecx
mov edx, esi
mov ecx, eax
call fcn.004133b5
mov dword [esi + 8], eax
push dword [ebx + 0x44]
lea edi, [ebx + 0x3c]
push edi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x664161
push dword [ebx + 0x44]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x30]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0x38], eax
push dword [ebx + 0x50]
lea edi, [ebx + 0x48]
push edi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x66418b
push dword [ebx + 0x50]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x60]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0x68], eax
push dword [ebx + 0x5c]
lea edi, [ebx + 0x54]
push edi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x6641bb
push dword [ebx + 0x5c]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x90]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0x98], eax
push dword [ebx + 0x68]
lea edi, [ebx + 0x60]
push edi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x6641eb
push dword [ebx + 0x68]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0xc0]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0xc8], eax
push dword [ebx + 0x74]
lea edi, [ebx + 0x6c]
push edi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x66421b
push dword [ebx + 0x74]
push edi
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0xf0]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0xf8], eax
push dword [ebx + 0x80]
lea edi, [ebx + 0x80]
lea eax, [ebx + 0x78]
push eax
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x664256
push dword [edi]
lea eax, [ebx + 0x78]
push eax
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x150]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0x158], eax
push dword [ebx + 0x8c]
lea edi, [ebx + 0x8c]
add ebx, 0x84
push ebx
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x664291
push dword [edi]
push ebx
call fcn.00413367
pop ecx
pop ecx
lea edx, [esi + 0x180]
mov ecx, eax
call fcn.004133b5
mov dword [esi + 0x188], eax
push dword [esi + 8]
push esi
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jle 0x6642a4
mov ecx, eax
jmp 0x6642a6
xor ecx, ecx
mov edi, 0x7cf
cmp ecx, edi
jl 0x6642b1
mov ecx, edi
mov edx, esi
call fcn.004133b5
push dword [esi + 0x38]
lea ebx, [esi + 0x30]
push ebx
mov dword [esi + 8], eax
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jg 0x6642cf
xor eax, eax
cmp eax, edi
mov ecx, eax
jl 0x6642d7
mov ecx, edi
mov edx, ebx
call fcn.004133b5
push dword [esi + 0x68]
lea ebx, [esi + 0x60]
push ebx
mov dword [esi + 0x38], eax
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jg 0x6642f5
xor eax, eax
cmp eax, edi
mov ecx, eax
jl 0x6642fd
mov ecx, edi
mov edx, ebx
call fcn.004133b5
push dword [esi + 0x98]
lea ebx, [esi + 0x90]
push ebx
mov dword [esi + 0x68], eax
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jg 0x664321
xor eax, eax
cmp eax, edi
jge 0x664327
mov edi, eax
mov edx, ebx
mov ecx, edi
call fcn.004133b5
push dword [esi + 0xc8]
lea edi, [esi + 0xc0]
push edi
mov dword [esi + 0x98], eax
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jg 0x664350
xor eax, eax
mov ebx, 0x3e7
cmp eax, ebx
mov ecx, eax
jl 0x66435d
mov ecx, ebx
mov edx, edi
call fcn.004133b5
push dword [esi + 0xf8]
lea edi, [esi + 0xf0]
push edi
mov dword [esi + 0xc8], eax
call fcn.00413367
test eax, eax
pop ecx
pop ecx
jg 0x664384
xor eax, eax
cmp eax, ebx
mov ecx, eax
jl 0x66438c
mov ecx, ebx
mov edx, edi
call fcn.004133b5
push dword [esi + 0x158]
lea edi, [esi + 0x150]
push edi
mov dword [esi + 0xf8], eax
call fcn.00413367
pop ecx
pop ecx
push 0x64
pop ebx
cmp eax, ebx
jg 0x6643b6
mov eax, ebx
mov ecx, 0x8c
cmp eax, ecx
jge 0x6643c1
mov ecx, eax
mov edx, edi
call fcn.004133b5
push dword [esi + 0x188]
lea edi, [esi + 0x180]
push edi
mov dword [esi + 0x158], eax
call fcn.00413367
cmp eax, ebx
pop ecx
pop ecx
jg 0x6643e8
mov eax, ebx
cmp eax, 0x7b
jl 0x6643f0
push 0x7b
pop eax
mov edx, edi
mov ecx, eax
call fcn.004133b5
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x188], eax
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14