Function at 0x401020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
cmp edi, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
jle 0x40108e
mov eax, dword [ebx + 4]
mov esi, 0x42a104
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40106b
test cl, cl
je 0x401067
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40106b
add eax, 2
add esi, 2
test cl, cl
jne 0x401047
xor eax, eax
jmp 0x401070
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40108e
call fcn.00401840
push eax
push 0x42a0f8
call fcn.00406f00
push 0
call fcn.00415d7b
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.00403d90
add esp, 4
cmp edi, 2
jge 0x4010be
mov ecx, dword [0x42a0f0]
mov dx, word [0x42a0f4]
mov dword [ebp - 0x1dc], ecx
mov word [ebp - 0x1d8], dx
jmp 0x401184
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0xdc]
push edx
push eax
call fcn.00401740
mov al, byte [ebp - 0xdc]
add esp, 0x10
test al, al
je 0x40113c
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0xdc]
push ecx
push edx
call fcn.004054e0
mov eax, dword [ebp - 8]
push eax
call fcn.00402420
add esp, 0xc
test eax, eax
je 0x40111e
lea ecx, [ebp - 0xdc]
push ecx
push 0x42a0dc
call fcn.00406f00
push 1
call fcn.00415d7b
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1dc]
push 0x42a0d4
push ecx
call fcn.00415cfc
add esp, 0x10
jmp 0x401154
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x1dc]
push edx
push 0x42a0d0
push eax
call fcn.00415cc8
add esp, 0xc
or ecx, 0xffffffff
xor eax, eax
mov edi, 0x42a0cc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
or ecx, 0xffffffff
mov esi, edi
lea edx, [ebp - 0x1dc]
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp + 8]
push eax
call fcn.00403d90
lea ecx, [ebp - 4]
push ecx
call fcn.00403d90
add esp, 8
call fcn.00402320
test eax, eax
mov dword [ebp + 8], eax
jne 0x4011b2
push 2
call fcn.00415d7b
mov eax, dword [ebp + 8]
add esp, 4
push eax
call fcn.004047e0
add esp, 4
test eax, eax
je 0x4011c9
push 2
call fcn.00415d7b
add esp, 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00402a10
add esp, 8
cmp eax, 5
je 0x401346
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x2dc]
push ecx
push 0x38
push edx
call fcn.00405f20
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [ebp - 0x2dc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x32
jae 0x40132d
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
call fcn.00401440
add esp, 8
test eax, eax
je 0x40132d
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
call fcn.00401380
mov eax, dword [ebp + 0xc]
add esp, 0xc
test eax, eax
jl 0x40132d
mov ebx, dword [ebp - 0xc]
xor edx, edx
test ebx, ebx
mov edi, ebx
je 0x4012e1
test edx, edx
jne 0x40132d
lea esi, [edi + 8]
lea eax, [ebp - 0x54]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x401291
test cl, cl
je 0x40128d
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x401291
add eax, 2
add esi, 2
test cl, cl
jne 0x40126d
xor eax, eax
jmp 0x401296
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4012d3
mov eax, dword [edi]
cmp dword [ebp + 0xc], eax
jle 0x4012bf
push eax
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x2dc]
push 0x42a0c4
push eax
call fcn.00415cfc
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov dword [edi], ecx
lea edx, [ebp - 0x2dc]
push edx
call fcn.00425ed4
add esp, 4
mov edx, 1
mov edi, dword [edi + 4]
test edi, edi
jne 0x40125f
test edx, edx
jne 0x40132d
mov ebx, dword [ebp - 0xc]
call fcn.004016e0
mov edx, eax
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
mov dword [edx], eax
xor eax, eax
lea edi, [ebp - 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea esi, [edx + 8]
mov dword [ebp - 0x14], esi
shr ecx, 2
mov esi, edi
mov edi, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 4], 0
jne 0x401324
mov dword [ebp - 0xc], edx
jmp 0x40132a
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00402a10
add esp, 8
cmp eax, 5
jne 0x4011e2
lea ecx, [ebp - 8]
push ecx
call fcn.00403f70
lea edx, [ebp + 8]
push edx
call fcn.00403f70
lea eax, [ebp - 4]
push eax
call fcn.00403f70
push 0
call fcn.00415d7b
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret