Function at 0x100187fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100370fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x40]
xor esi, esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
cmp edi, esi
jne 0x10018842
push 0xffffffffffffff9a
pop eax
jmp 0x10018cac
cmp dword [ebp + 0x28], esi
je 0x1001884d
cmp dword [ebp + 0x28], 8
jne 0x1001883a
cmp dword [edi + 0x2c], 1
jne 0x10018862
push edi
call fcn.1001863a
pop ecx
cmp eax, esi
jne 0x10018cac
cmp dword [ebp - 0x1c], esi
jne 0x1001886e
mov dword [ebp - 0x1c], 0x10030510
cmp dword [ebp - 0x24], esi
jne 0x10018878
mov dword [ebp - 0x18], esi
jmp 0x10018884
push dword [ebp - 0x24]
call fcn.1001c840
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x1c]
call fcn.1001c840
pop ecx
mov dword [ebp - 0x14], eax
cmp ebx, esi
jne 0x1001889c
mov dword [edi + 0x4088], esi
jmp 0x100188b0
mov eax, dword [ebx + 0x18]
cmp eax, esi
jne 0x100188aa
mov edx, ebx
call fcn.10017d55
mov dword [edi + 0x4088], eax
mov eax, dword [ebp + 0x2c]
push 2
mov dword [edi + 0x7c], esi
pop ebx
cmp eax, 8
je 0x100188c3
cmp eax, 9
jne 0x100188c6
mov dword [edi + 0x7c], ebx
cmp eax, ebx
jne 0x100188ce
or dword [edi + 0x7c], 4
cmp eax, 1
jne 0x100188d7
or dword [edi + 0x7c], 6
cmp dword [ebp - 0x28], esi
je 0x100188e0
or dword [edi + 0x7c], 1
mov eax, dword [ebp + 0x28]
push dword [edi + 0x20]
mov dword [edi + 0x80], eax
mov eax, dword [ebp + 0x30]
push dword [edi + 0x1c]
mov dword [edi + 0x408c], esi
mov dword [edi + 0x4090], esi
mov dword [edi + 0x68], esi
mov dword [edi + 0x6c], esi
mov dword [edi + 0x84], eax
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x70], eax
mov eax, dword [ebp - 0x20]
add eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [eax + ecx + 0x2e]
push eax
mov dword [edi + 0x78], eax
call fcn.1001c0d6
add esp, 0xc
push 4
pop edx
mov ecx, 0x2014b50
mov esi, eax
mov dword [edi + 0x74], eax
call fcn.10017d2c
mov esi, dword [edi + 0x74]
add esi, 4
mov edx, ebx
xor ecx, ecx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
push 0x14
add esi, 6
mov edx, ebx
pop ecx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x7c]
add esi, 8
mov edx, ebx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x80]
add esi, 0xa
mov edx, ebx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x4088]
push 4
add esi, 0xc
pop edx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
push 4
add esi, 0x10
pop edx
xor ecx, ecx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
push 4
add esi, 0x14
pop edx
xor ecx, ecx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
push 4
add esi, 0x18
pop edx
xor ecx, ecx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x14]
add esi, 0x1c
mov edx, ebx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x20]
add esi, 0x1e
mov edx, ebx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x18]
add esi, 0x20
mov edx, ebx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
add esi, 0x22
mov edx, ebx
xor ecx, ecx
call fcn.10017d2c
mov esi, dword [edi + 0x74]
mov eax, dword [ebp - 0x2c]
add esi, 0x24
mov edx, ebx
test eax, eax
jne 0x10018a1c
xor ecx, ecx
call fcn.10017d2c
xor ecx, ecx
jmp 0x10018a2a
mov ecx, dword [eax + 0x1c]
call fcn.10017d2c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
mov esi, dword [edi + 0x74]
push 4
pop edx
add esi, 0x26
call fcn.10017d2c
mov ecx, dword [edi + 0x70]
mov esi, dword [edi + 0x74]
sub ecx, dword [edi + 0x40ac]
push 4
add esi, 0x2a
pop edx
call fcn.10017d2c
mov esi, dword [ebp - 0x14]
xor eax, eax
test esi, esi
jbe 0x10018a6a
mov edx, dword [ebp - 0x1c]
mov dl, byte [edx + eax]
mov ecx, dword [edi + 0x74]
mov byte [ecx + eax + 0x2e], dl
inc eax
cmp eax, esi
jb 0x10018a58
xor eax, eax
cmp dword [ebp - 0x20], eax
jbe 0x10018a86
mov ecx, dword [edi + 0x74]
mov edx, dword [ebp + 0x1c]
mov dl, byte [eax + edx]
add ecx, eax
inc eax
mov byte [ecx + esi + 0x2e], dl
cmp eax, dword [ebp - 0x20]
jb 0x10018a71
xor eax, eax
cmp dword [ebp - 0x18], eax
jbe 0x10018aa5
mov ecx, dword [edi + 0x74]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dl, byte [edx + eax]
add ecx, eax
inc eax
mov byte [ecx + esi + 0x2e], dl
cmp eax, dword [ebp - 0x18]
jb 0x10018a8d
cmp dword [edi + 0x74], 0
jne 0x10018ab2
push 0xffffffffffffff98
jmp 0x1001883c
push dword [edi + 0x20]
mov ecx, 0x4034b50
push 4
pop esi
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
mov esi, ebx
push 0x14
pop ecx
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
mov ecx, dword [edi + 0x7c]
mov esi, ebx
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
mov ecx, dword [edi + 0x80]
mov esi, ebx
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
mov ecx, dword [edi + 0x4088]
push 4
pop esi
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
mov ecx, dword [ebp - 0x14]
mov esi, ebx
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
push dword [edi + 0x20]
mov esi, ebx
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call fcn.10017ce3
mov esi, eax
pop ecx
test esi, esi
jne 0x10018bd5
cmp dword [ebp - 0x14], eax
jbe 0x10018bba
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, dword [ebp - 0x14]
jne 0x10018bd2
test ebx, ebx
jbe 0x10018bd5
push ebx
push dword [ebp - 0x30]
push dword [edi + 0x20]
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x10
cmp eax, ebx
je 0x10018bd5
or esi, 0xffffffff
xor eax, eax
lea ecx, [edi + 0x88]
mov dword [edi + 0x34], eax
mov dword [edi + 0x40], 0x4000
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x38], eax
mov dword [edi + 0x44], eax
cmp esi, eax
jne 0x10018c44
cmp dword [edi + 0x80], 8
jne 0x10018c44
cmp dword [edi + 0x84], eax
jne 0x10018c44
cmp dword [ebp + 0x34], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
jle 0x10018c16
neg dword [ebp + 0x34]
push 0x38
push 0x10030508
push dword [ebp + 0x3c]
lea eax, [edi + 0x30]
push dword [ebp + 0x38]
push dword [ebp + 0x34]
push 8
push dword [ebp + 0x2c]
push eax
call fcn.1001a2ab
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10018c44
mov dword [edi + 0x68], 1
and dword [edi + 0x40a4], 0
test esi, esi
jne 0x10018caa
cmp dword [ebp - 0x28], esi
je 0x10018ca3
mov dword [edi + 0x4090], 1
call fcn.1001a47b
push dword [ebp + 0x44]
mov ecx, dword [ebp - 0x28]
push eax
mov dword [edi + 0x40a0], eax
lea eax, [ebp - 0x10]
push 0xc
lea edx, [edi + 0x4094]
push eax
call fcn.10017ad6
mov ebx, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x20]
mov dword [edi + 0x40a4], ebx
push dword [edi + 0x1c]
call dword [edi + 8]
add esp, 0x20
cmp eax, ebx
je 0x10018ca3
or esi, 0xffffffff
jmp 0x10018caa
mov dword [edi + 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c1d7
leave
ret