Function at 0x1004ffd0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093b0d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x100af380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100af630], 0
jne 0x1005018f
mov ecx, dword [0x100b06ac]
mov eax, dword fs:[0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [0x100af630], 1
mov edi, dword [eax + ecx*4]
mov ecx, dword [0x100b1f84]
cmp ecx, dword [edi + 4]
jle 0x10050079
push 0x100b1f84
call fcn.1009099c
mov ecx, dword [0x100b1f84]
add esp, 4
cmp ecx, 0xffffffff
jne 0x10050079
push str.samp.dll
call esi
push 0x100b1f84
mov dword [0x100b1f88], eax
call fcn.1009094b
mov ecx, dword [0x100b1f84]
add esp, 4
mov eax, dword [0x100b1f88]
mov eax, dword [eax + 0x26e8dc]
mov dword [ebp - 0x14], eax
cmp ecx, dword [edi + 4]
jle 0x100500be
push 0x100b1f84
call fcn.1009099c
add esp, 4
cmp dword [0x100b1f84], 0xffffffff
jne 0x100500be
push str.samp.dll
call esi
push 0x100b1f84
mov dword [0x100b1f88], eax
call fcn.1009094b
add esp, 4
mov eax, dword [0x100b1f88]
mov ecx, dword [ebp - 0x14]
add eax, 0x1160
call eax
mov ecx, dword [0x100b1f84]
mov dword [ebp - 0x14], eax
cmp ecx, dword [edi + 4]
jle 0x1005010d
push 0x100b1f84
call fcn.1009099c
add esp, 4
cmp dword [0x100b1f84], 0xffffffff
jne 0x1005010d
push str.samp.dll
call esi
push 0x100b1f84
mov dword [0x100b1f88], eax
call fcn.1009094b
add esp, 4
mov eax, dword [0x100b1f88]
mov ecx, dword [ebp - 0x14]
add eax, 0xa170
call eax
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10050138
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100444d0
lea eax, [ebp - 0x28]
mov ecx, 0x100af634
push eax
call fcn.10044060
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005018f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050185
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10050185
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100908c9
add esp, 8
cmp dword [0x100af648], 0xf
mov eax, 0x100af634
cmova eax, dword [0x100af634]
push eax
push str.___s
call fcn.100301c0
add esp, 8
call fcn.10032120
push dword [0x100af438]
lea eax, [ebp - 0x28]
push eax
call fcn.1004f6c0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x100501d3
mov eax, dword [eax]
push eax
push str.__:__s
call fcn.100301c0
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005021e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050214
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10050214
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100908c9
add esp, 8
cmp byte [0x100af415], 0
je 0x100503b5
movd xmm1, dword [0x100af408]
cvtdq2pd xmm1, xmm1
movd xmm0, dword [0x100af404]
divsd xmm1, qword [0x100a4bf8]
movd xmm2, dword [0x100af438]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
addsd xmm1, xmm0
mulsd xmm1, qword [0x100a4c10]
comisd xmm1, xmm2
jbe 0x100502d4
subsd xmm1, xmm2
cvttsd2si eax, xmm1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004fb80
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0xf
jbe 0x1005028a
mov eax, dword [eax]
push eax
push str._X1:__s
call fcn.100301c0
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100502f0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100502cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100502cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100908c9
jmp 0x100502ed
movaps xmm0, xmmword [0x100a4da0]
lea eax, [ebp - 0x20]
push str.X1:_
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100302b0
add esp, 8
movd xmm1, dword [0x100af410]
cvtdq2pd xmm1, xmm1
movd xmm0, dword [0x100af40c]
divsd xmm1, qword [0x100a4bf8]
movd xmm2, dword [0x100af438]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm2, xmm2
addsd xmm1, xmm0
mulsd xmm1, qword [0x100a4c10]
comisd xmm1, xmm2
jbe 0x10050399
subsd xmm1, xmm2
cvttsd2si eax, xmm1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004fb80
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x1005034f
mov eax, dword [eax]
push eax
push str._X2:__s
call fcn.100301c0
mov dword [ebp - 4], 0xffffffff
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100503b5
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050390
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10050390
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100908c9
jmp 0x100503b2
movaps xmm0, xmmword [0x100a4da0]
lea eax, [ebp - 0x20]
push str.X2:_
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100302b0
add esp, 8
call fcn.10032120
mov esi, dword [0x100b06f0]
xor edx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 0x1b94]
mov ecx, dword [eax + 0xc0]
mov eax, dword [eax + 0xc8]
push dword [eax + ecx*4 - 4]
mov ecx, str.norma
call fcn.10004e70
add esp, 4
cmp dword [esi + 0x1bc8], eax
jne 0x10050401
mov dword [esi + 0x1bcc], eax
cmp dword [esi + 0x1c04], eax
jne 0x10050410
mov byte [esi + 0x1c08], 1
push ecx
mov dword [esp], 0
lea edx, [ebp - 0x18]
push edx
push 0x27c0
push 4
mov edx, eax
mov ecx, str.norma
call fcn.10027d10
add esp, 0xc
xorps xmm2, xmm2
mov ecx, str.Type
call fcn.1002a660
xorps xmm2, xmm2
mov ecx, 0x1009fa08
call fcn.1002a660
xorps xmm2, xmm2
mov ecx, 0x1009fa0c
call fcn.1002a660
xorps xmm2, xmm2
mov ecx, 0x1009fa10
call fcn.1002a660
add esp, 4
call fcn.1002c7c0
xorps xmm1, xmm1
xor ecx, ecx
call fcn.1002a840
call fcn.1002b0f0
push 0x1009fa14
call fcn.100301c0
add esp, 4
call fcn.1002b0f0
push dword [0x100af428]
push 0x1009a804
call fcn.100301c0
add esp, 8
call fcn.1002b0f0
mov eax, dword [0x100af3f4]
mov ecx, dword [0x100af428]
cmp eax, ecx
jge 0x100504d1
movaps xmm0, xmmword [0x100a4da0]
lea eax, [ebp - 0x20]
push 0x1009ec9c
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100302b0
jmp 0x100504de
sub eax, ecx
push eax
push 0x1009a804
call fcn.100301c0
add esp, 8
call fcn.1002b0f0
mov eax, dword [0x100af3f8]
mov ecx, dword [0x100af428]
cmp eax, ecx
jge 0x10050510
movaps xmm0, xmmword [0x100a4da0]
lea eax, [ebp - 0x20]
push 0x1009ec9c
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100302b0
jmp 0x1005051d
sub eax, ecx
push eax
push 0x1009a804
call fcn.100301c0
add esp, 8
xorps xmm1, xmm1
xor ecx, ecx
call fcn.1002a840
call fcn.1002b0f0
push str.JAIL
call fcn.100301c0
add esp, 4
call fcn.1002b0f0
push dword [0x100af42c]
push 0x1009a804
call fcn.100301c0
add esp, 8
call fcn.1002b0f0
mov eax, dword [str.2d2d2d]
mov ecx, dword [0x100af42c]
cmp eax, ecx
jge 0x10050583
movaps xmm0, xmmword [0x100a4da0]
lea eax, [ebp - 0x20]
push 0x1009ec9c
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100302b0
jmp 0x10050590
sub eax, ecx
push eax
push 0x1009a804
call fcn.100301c0
add esp, 8
call fcn.1002b0f0
mov eax, dword [0x100af3f0]
mov ecx, dword [0x100af42c]
cmp eax, ecx
jge 0x100505c2
movaps xmm0, xmmword [0x100a4da0]
lea eax, [ebp - 0x20]
push 0x1009ec9c
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100302b0
jmp 0x100505cf
sub eax, ecx
push eax
push 0x1009a804
call fcn.100301c0
add esp, 8
call fcn.10029f30
mov eax, dword [0x100b06f0]
mov ecx, dword [eax + 0x1b94]
cmp byte [ecx + 0x8f], 0
jne 0x100505fd
mov ecx, dword [ecx + 0x1a0]
neg ecx
sbb ecx, ecx
add ecx, 6
call fcn.100321c0
push str.RWC:
call fcn.100301c0
movss xmm1, dword [0x100a4c90]
add esp, 4
xorps xmm0, xmm0
call fcn.10010990
push 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov ecx, 0x1009fa28
mov dword [ebp - 0x14], 0
call fcn.10030a90
add esp, 4
test al, al
je 0x10050653
push 0
push 0
push 0
push 0x10066a80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
movss xmm1, dword [0x100a4c90]
xorps xmm0, xmm0
call fcn.10010990
push 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov ecx, str.RWC
mov dword [ebp - 0x14], 0
call fcn.10030a90
add esp, 4
test al, al
je 0x10050698
mov ecx, str._msg__RWC_
mov byte [0x100b06ef], 0
call fcn.10082a00
mov edx, dword [0x100b06f0]
mov eax, dword [edx + 0x1b94]
cmp byte [eax + 0x8f], 0
jne 0x100506d4
mov esi, dword [edx + 0x1f10]
test esi, esi
je 0x100506d4
movsx eax, word [esi + 0x6c]
lea ecx, [eax + eax*8]
mov eax, dword [esi + 8]
test byte [eax + ecx*4 + 4], 8
jne 0x100506d4
mov eax, dword [edx + 0x1b94]
dec dword [eax + 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret