Function at 0x100128f6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100310fc]
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 0x1001293e
push 0xffffffffffffff9a
pop eax
jmp 0x10012da8
cmp dword [ebp + 0x28], esi
je 0x10012949
cmp dword [ebp + 0x28], 8
jne 0x10012936
cmp dword [edi + 0x2c], 1
jne 0x1001295e
push edi
call fcn.10012736
pop ecx
cmp eax, esi
jne 0x10012da8
cmp dword [ebp - 0x1c], esi
jne 0x1001296a
mov dword [ebp - 0x1c], 0x1002a450
cmp dword [ebp - 0x24], esi
jne 0x10012974
mov dword [ebp - 0x18], esi
jmp 0x10012980
push dword [ebp - 0x24]
call fcn.10016930
pop ecx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x1c]
call fcn.10016930
pop ecx
mov dword [ebp - 0x14], eax
cmp ebx, esi
jne 0x10012998
mov dword [edi + 0x4088], esi
jmp 0x100129ac
mov eax, dword [ebx + 0x18]
cmp eax, esi
jne 0x100129a6
mov edx, ebx
call fcn.10011e51
mov dword [edi + 0x4088], eax
mov eax, dword [ebp + 0x2c]
push 2
mov dword [edi + 0x7c], esi
pop ebx
cmp eax, 8
je 0x100129bf
cmp eax, 9
jne 0x100129c2
mov dword [edi + 0x7c], ebx
cmp eax, ebx
jne 0x100129ca
or dword [edi + 0x7c], 4
cmp eax, 1
jne 0x100129d3
or dword [edi + 0x7c], 6
cmp dword [ebp - 0x28], esi
je 0x100129dc
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.100161d2
add esp, 0xc
push 4
pop edx
mov ecx, 0x2014b50
mov esi, eax
mov dword [edi + 0x74], eax
call fcn.10011e28
mov esi, dword [edi + 0x74]
add esi, 4
mov edx, ebx
xor ecx, ecx
call fcn.10011e28
mov esi, dword [edi + 0x74]
push 0x14
add esi, 6
mov edx, ebx
pop ecx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x7c]
add esi, 8
mov edx, ebx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x80]
add esi, 0xa
mov edx, ebx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x4088]
push 4
add esi, 0xc
pop edx
call fcn.10011e28
mov esi, dword [edi + 0x74]
push 4
add esi, 0x10
pop edx
xor ecx, ecx
call fcn.10011e28
mov esi, dword [edi + 0x74]
push 4
add esi, 0x14
pop edx
xor ecx, ecx
call fcn.10011e28
mov esi, dword [edi + 0x74]
push 4
add esi, 0x18
pop edx
xor ecx, ecx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x14]
add esi, 0x1c
mov edx, ebx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x20]
add esi, 0x1e
mov edx, ebx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov ecx, dword [ebp - 0x18]
add esi, 0x20
mov edx, ebx
call fcn.10011e28
mov esi, dword [edi + 0x74]
add esi, 0x22
mov edx, ebx
xor ecx, ecx
call fcn.10011e28
mov esi, dword [edi + 0x74]
mov eax, dword [ebp - 0x2c]
add esi, 0x24
mov edx, ebx
test eax, eax
jne 0x10012b18
xor ecx, ecx
call fcn.10011e28
xor ecx, ecx
jmp 0x10012b26
mov ecx, dword [eax + 0x1c]
call fcn.10011e28
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x20]
mov esi, dword [edi + 0x74]
push 4
pop edx
add esi, 0x26
call fcn.10011e28
mov ecx, dword [edi + 0x70]
mov esi, dword [edi + 0x74]
sub ecx, dword [edi + 0x40ac]
push 4
add esi, 0x2a
pop edx
call fcn.10011e28
mov esi, dword [ebp - 0x14]
xor eax, eax
test esi, esi
jbe 0x10012b66
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 0x10012b54
xor eax, eax
cmp dword [ebp - 0x20], eax
jbe 0x10012b82
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 0x10012b6d
xor eax, eax
cmp dword [ebp - 0x18], eax
jbe 0x10012ba1
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 0x10012b89
cmp dword [edi + 0x74], 0
jne 0x10012bae
push 0xffffffffffffff98
jmp 0x10012938
push dword [edi + 0x20]
mov ecx, 0x4034b50
push 4
pop esi
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
mov esi, ebx
push 0x14
pop ecx
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
mov ecx, dword [edi + 0x7c]
mov esi, ebx
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
mov ecx, dword [edi + 0x80]
mov esi, ebx
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
mov ecx, dword [edi + 0x4088]
push 4
pop esi
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
xor ecx, ecx
push 4
pop esi
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
mov ecx, dword [ebp - 0x14]
mov esi, ebx
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
push dword [edi + 0x20]
mov esi, ebx
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
call fcn.10011ddf
mov esi, eax
pop ecx
test esi, esi
jne 0x10012cd1
cmp dword [ebp - 0x14], eax
jbe 0x10012cb6
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 0x10012cce
test ebx, ebx
jbe 0x10012cd1
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 0x10012cd1
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 0x10012d40
cmp dword [edi + 0x80], 8
jne 0x10012d40
cmp dword [edi + 0x84], eax
jne 0x10012d40
cmp dword [ebp + 0x34], eax
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
jle 0x10012d12
neg dword [ebp + 0x34]
push 0x38
push 0x1002a448
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.100143a7
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x10012d40
mov dword [edi + 0x68], 1
and dword [edi + 0x40a4], 0
test esi, esi
jne 0x10012da6
cmp dword [ebp - 0x28], esi
je 0x10012d9f
mov dword [edi + 0x4090], 1
call fcn.10014577
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.10011bd2
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 0x10012d9f
or esi, 0xffffffff
jmp 0x10012da6
mov dword [edi + 0x2c], 1
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
leave
ret