Function at 0x10013660
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
push ebx
push esi
mov dword [ebp - 0x14], esi
call fcn.100095f0
mov esi, dword [ebp + 0xc]
push 0x104
mov eax, dword [esi]
push eax
push 0x10025a88
call dword [0x1001b398]
mov ecx, dword [esi]
push 0x104
push ecx
push 0x10025a88
call dword [0x1001b34c]
mov edx, dword [str.3817__:_]
push 0x10025a88
lea eax, [ebp - 0x4d4]
push edx
push eax
call dword [0x1001b4a4]
push 0
push 4
push 0
push 0
push 4
lea ecx, [ebp - 0x4d4]
push 0x10023c38
push ecx
push 0x80000002
call fcn.1000db00
add esp, 0x44
mov dword [0x1002595c], eax
push 0
push 0x10012760
push 0x10025a88
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x10025a88
mov dword [0x10025964], eax
call dword [0x1001b318]
push 0
call fcn.10009bd0
add esp, 8
test al, al
je 0x10013774
mov ebx, 1
push ebx
push 0
push 2
call fcn.1000a690
push 0
push 0
push 4
call fcn.1000a690
mov eax, dword [0x10025a80]
add esp, 0x18
test eax, eax
je 0x10013786
mov esi, dword [0x1001b168]
push 0x64
call esi
mov eax, dword [0x1002596c]
cmp eax, 3
je 0x10013760
cmp eax, ebx
jne 0x1001374e
push 0
push 0
push ebx
call fcn.1000a690
add esp, 0xc
push 0xbb8
call esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
push edi
cmp eax, ebx
jle 0x100137e3
add esi, 4
cmp ebx, 3
jge 0x100137e3
mov ecx, 0xc
xor eax, eax
lea edi, [ebp - 0x70]
push 0x32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [esi]
lea eax, [ebp - 0x70]
push edx
push eax
call dword [0x1001b398]
mov ecx, dword [esi]
push 0x32
lea edx, [ebp - 0x70]
push ecx
push edx
call dword [0x1001b34c]
mov al, byte [ebp - 0x70]
add esp, 0x18
test al, al
je 0x100137d8
lea eax, [ebp - 0x70]
push eax
call section..text
add esp, 4
mov eax, dword [ebp + 8]
inc ebx
add esi, 4
cmp ebx, eax
jl 0x10013791
mov byte [ebp - 0x70], 0
xor ebx, ebx
xor edi, edi
lea ecx, [ebp - 0x70]
push edi
push 0x32
push edi
push ecx
push 1
lea edx, [ebp - 0x4d4]
push 0x10023c2c
push edx
push 0x80000002
call fcn.1000db00
mov al, byte [ebp - 0x70]
add esp, 0x20
test al, al
je 0x1001383d
push 3
push edi
push edi
push 1
lea eax, [ebp - 0x4d4]
push 0x10023c2c
push eax
push 0x80000002
call fcn.1000c320
lea ecx, [ebp - 0x70]
push ecx
call section..text
add esp, 0x20
cmp ebx, edi
jne 0x1001387b
mov edi, 0x10022238
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x4d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100137e9
mov eax, dword [0x100222e0]
push 0x10025b98
add eax, 0x10
push 0x118
push eax
call fcn.10006c00
push 0x10025b98
call section..text
push 0x10025b98
lea ecx, [ebp - 0xd4]
push 0x100236e8
push ecx
call dword [0x1001b4a4]
add esp, 0x1c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x1001b8e8
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edi
call fcn.10016210
mov dword [ebp - 0x38], eax
mov esi, dword [0x1001b164]
lea edx, [ebp - 0xd4]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x34]
push edx
and eax, ecx
push edi
push 1
push eax
mov dword [ebp - 4], edi
call esi
mov dword [0x10025a80], eax
mov eax, dword [ebp - 0x38]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x34]
push 0x10023c1c
and eax, ecx
push edi
push 1
push eax
call esi
mov edx, dword [0x10025a80]
mov byte [0x10025cb7], 1
push edx
call dword [0x1001b188]
mov edi, dword [0x1001b16c]
mov ebx, dword [0x1001b158]
push 0
push 0
push 0x10025a88
push 0x10016660
push 0
push 0
call dword [0x1001b218]
mov esi, eax
push 0xffffffffffffffff
push esi
call edi
push esi
call ebx
mov eax, dword [0x10025a80]
push 0xc350
push eax
call edi
test eax, eax
jne 0x1001393b
mov esi, dword [0x1001b168]
push 0xbb8
call esi
mov ecx, dword [0x10025968]
push ecx
call fcn.1000e670
add esp, 4
lea edx, [ebp - 0x10]
push edx
push 0
push 0x10025858
push 0x10001640
push 0
push 0
call dword [0x1001b218]
push eax
call ebx
push 0x1f4
call esi
mov eax, dword [0x10025a80]
push eax
call ebx
push 0
push 0
push 1
mov dword [0x10025a80], 0
call fcn.1000a690
add esp, 0xc
push 0x10025a88
call dword [0x1001b12c]
mov esi, dword [ebp - 0x14]
push eax
mov ecx, dword [esi]
push ecx
call dword [0x1001b2e0]
test eax, eax
jne 0x10013a3a
mov eax, dword [ebp + 0xc]
mov edx, dword [esi]
push edx
mov ecx, dword [eax]
push ecx
call dword [0x1001b324]
add esp, 8
test eax, eax
jne 0x10013a3a
mov edi, dword [0x1001b2dc]
add esi, 4
push 4
push esi
call edi
test eax, eax
jne 0x10013a3a
mov edx, dword [esi]
push 0x10
push edx
call edi
test eax, eax
jne 0x10013a3a
mov eax, dword [esi]
mov edx, dword [0x10025968]
add eax, 8
mov ecx, dword [eax]
cmp ecx, edx
jne 0x10013a3a
mov dword [esi], 0
mov dword [eax], 0
mov edx, dword [0x10025968]
push 0
push edx
call dword [0x1001b2d8]
pop edi
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
sub esp, 0x14
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov cl, byte [eax]
add ecx, 0xffffffe5
cmp ecx, 0x2a
ja case.0x10013a73.35
xor edx, edx
mov dl, byte [ecx + 0x10013c54]
jmp dword [edx*4 + 0x10013c30]
add esi, 0x2c
push 0
push esi
call dword [0x1001b190]
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
mov ecx, esi
call fcn.100013f0
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
xor ecx, ecx
push 0
mov cl, byte [eax + 1]
push 0
mov dword [0x10024ee8], ecx
mov ecx, esi
call fcn.1000c050
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
mov edx, dword [0x10023c40]
mov edi, dword [0x10023c48]
push 0
lea eax, [edx]
mov ecx, eax
dec eax
push ecx
push edi
mov dword [0x10025ce8], eax
call fcn.10019bd4
mov dword [esi + 0x30], 1
mov eax, dword [0x10025ce8]
push 2
inc eax
push 0
push 0x10023c80
push eax
push edi
mov dword [0x10025ce8], eax
call fcn.10019bce
push 0
push 0
mov ecx, esi
call fcn.1000c050
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
add esi, 0x2c
push 1
push esi
call dword [0x1001b190]
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
cmp dword [esp + 0x24], 4
jbe 0x10013c24
mov edi, dword [eax + 1]
lea eax, [esi + 0x30]
push 1
push eax
call dword [0x1001b190]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10013b57
cmp dword [eax + 0x50], edi
je 0x10013c24
cmp edi, dword [0x10023c44]
jne 0x10013bcc
push 0
push 4
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push 0x10023c70
push 0x10023c5c
push 0x80000001
call fcn.1000db00
add esp, 0x20
cmp eax, 0xffffffff
jne 0x10013ba6
push 0
push 0
push 0
push 0
push 0
push 0x10023c4c
push 0x80000001
call fcn.1000c320
add esp, 0x1c
jmp 0x10013bad
cmp byte [esp + 8], 0x30
je 0x10013bcc
push 0
push 0
push 0
push 4
push 0x10023c70
push 0x10023c5c
push 0x80000001
call fcn.1000c320
add esp, 0x1c
push 0
push 0
mov ecx, esi
mov dword [0x10025ce8], edi
call fcn.1000c050
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
add esi, 0x30
push 0
push esi
call dword [0x1001b190]
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
mov edx, dword [eax + 5]
mov eax, dword [eax + 1]
push edx
push eax
mov ecx, esi
call fcn.1000c050
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8
mov ecx, dword [esi + 0x14]
mov esi, dword [esp + 0x24]
push esi
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
xor al, al
pop esi
add esp, 0x14
ret 8