Function at 0x1001a14
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x1004004]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x30], eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp esi, eax
push 4
sete cl
pop ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ecx
call fcn.0100149d
cmp dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], eax
je 0x1001a8c
push edi
push dword [0x1004c8c]
push 0x2711
push 2
call fcn.01002487
add esp, 0x10
jmp 0x1001ba0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x24]
call fcn.0100165a
test eax, eax
mov dword [ebp - 0x18], eax
je 0x1001aaf
push dword [ebp - 0x24]
push dword [0x1004c8c]
push 0x2712
jmp 0x1001a7d
cmp dword [ebp - 0x20], 0
jne 0x1001ae2
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.01003685
mov edi, eax
test edi, edi
je 0x1001e18
push esi
call fcn.01001364
push edi
mov dword [ebp - 0x10], eax
call fcn.0100266a
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1001ae2
push esi
jmp 0x1001a72
mov esi, 0xc8
push esi
call fcn.0100240e
test eax, eax
je 0x1001b8b
push 0xf
pop edi
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 1
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x90], edi
call fcn.010012f0
mov eax, dword [ebp - 0x10]
push esi
mov byte [ebp - 0x88], 2
mov dword [ebp - 0x84], eax
call fcn.0100240e
test eax, eax
je 0x1001b8b
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 2
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], edi
call fcn.010012f0
and dword [ebp - 0x64], 0
lea eax, [ebp - 0xc]
push esi
mov byte [ebp - 0x70], bl
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], 6
call fcn.0100240e
test eax, eax
je 0x1001b8b
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push 3
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], edi
call fcn.010012f0
and dword [ebp - 0x4c], 0
mov eax, edx
push esi
mov byte [ebp - 0x58], 0x40
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
call fcn.0100240e
xor esi, esi
cmp eax, esi
jne 0x1001ba8
push dword [0x1004c8c]
push 0x2714
push 2
call fcn.01002487
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
push dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edi
call fcn.010012f0
cmp dword [ebp - 0x20], esi
mov byte [ebp - 0x40], 2
mov dword [ebp - 0x3c], ebx
jne 0x1001be2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push 0xa3
call dword [0x1004ca0]
jmp 0x1001dee
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x24], esi
call fcn.01003685
cmp eax, esi
mov dword [ebp - 0x20], eax
mov ebx, 0xa3
je 0x1001cb1
mov esi, dword [eax]
cmp esi, eax
je 0x1001cb1
mov al, byte [ebp - 0x1c]
or edi, 0xffffffff
and al, 0xc0
je 0x1001c3d
cmp al, 0x40
je 0x1001c3d
cmp al, 0x80
jne 0x1001c22
mov edi, 0xffff
jmp 0x1001c42
cmp al, 0xc0
jne 0x1001c42
mov al, byte [ebp - 0x1c]
and al, 0x30
neg al
sbb eax, eax
and eax, 0xff000000
add eax, 0xffffff
mov edi, eax
jmp 0x1001c42
mov edi, 0xff
mov eax, dword [esi + 0x18]
mov ecx, edi
and ecx, dword [ebp - 0x1c]
and eax, edi
cmp eax, ecx
jne 0x1001c9f
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [0x1004ca0]
cmp dword [ebp - 0x14], 0
je 0x1001ca8
mov esi, dword [esi]
cmp esi, dword [ebp - 0x20]
jne 0x1001c42
jmp 0x1001cb1
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1001dbb
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.01003685
mov edi, eax
test edi, edi
mov dword [ebp - 0x24], edi
je 0x1001dbb
mov esi, dword [edi]
cmp esi, edi
je 0x1001dbb
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001d41
mov eax, dword [esi + 0x10]
mov edx, eax
and edx, dword [ebp - 0x1c]
and eax, ecx
cmp eax, edx
jne 0x1001d41
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [0x1004ca0]
cmp dword [ebp - 0x14], 0
je 0x1001d49
mov esi, dword [esi]
cmp esi, edi
jne 0x1001cdd
jmp 0x1001d57
mov eax, dword [ebp - 0x84]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x1001dbb
mov esi, dword [edi]
jmp 0x1001dac
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x84], eax
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x5c]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x84]
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [0x1004ca0]
cmp dword [ebp - 0x14], 0
je 0x1001db2
mov esi, dword [esi]
cmp esi, edi
jne 0x1001d5b
jmp 0x1001dbb
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x10], eax
xor esi, esi
cmp dword [ebp - 0x20], esi
je 0x1001dca
push dword [ebp - 0x20]
call fcn.0100266a
cmp dword [ebp - 0x24], esi
je 0x1001dd7
push dword [ebp - 0x24]
call fcn.0100266a
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1001dee
cmp dword [ebp - 0x14], esi
jne 0x1001dee
cmp dword [ebp - 0x18], esi
jne 0x1001dee
mov dword [ebp - 0x14], 5
push dword [ebp - 0x8c]
call fcn.01002402
push dword [ebp - 0x74]
call fcn.01002402
push dword [ebp - 0x5c]
call fcn.01002402
push dword [ebp - 0x44]
call fcn.01002402
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x1001e1b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010020d5
leave
ret 0xc