Function at 0x80bdc0
Capabilities:
Terminate process

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [esp + 0x14], edx
mov esi, ecx
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x58]
xor edi, edi
mov ecx, dword [0xbcbae0]
xor ecx, esp
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 4]
mov dl, byte [ebp]
mov ebx, dword [esi + 8]
mov ebp, 0
mov dword [esp + 0x1c], ecx
je 0x80be04
mov ecx, dword [esp + 0x5c]
movzx ebp, byte [ecx + 1]
test eax, eax
je 0x80be11
mov ecx, dword [eax]
test ecx, ecx
cmove eax, ecx
mov edi, eax
test ebp, ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x10], ebp
jne 0x80be36
test edi, edi
jne 0x80be36
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [eax + 0xc]
push dword [esp + 0x64]
call fcn.008109a0
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
mov dword [esp + 8], edi
mov ebp, dword [esp + 0x54]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax]
mov eax, dword [edx + 8]
test eax, eax
jne 0x80be8b
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x80be67
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], 0
jmp 0x80be7f
mov eax, dword [ecx]
mov ecx, dword [ecx + 0x20]
not ecx
and ecx, 1
add ecx, dword [eax]
mov eax, dword [esi + 0x2c]
add eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esi + 0x2c], eax
inc eax
lea ecx, [esi + 0x2c]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x2c]
jmp 0x80beae
mov edx, eax
lea ecx, [eax + edi]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], 0
cmp ecx, eax
jg 0x80bea7
mov eax, edx
mov edx, dword [esp + 0x60]
jmp 0x80beb5
mov edx, dword [esp + 0x60]
lea ecx, [esi + 0x2c]
add eax, edi
mov dword [ecx], eax
mov eax, dword [edx + 8]
test ebp, ebp
mov dword [edx + 0xc], edi
mov dword [esp + 4], ebx
mov ecx, eax
mov dword [esp], eax
mov dword [esp + 0x24], esi
js 0x80bf0e
test edi, edi
jg 0x80bed4
mov ecx, eax
jmp 0x80c049
mov esi, edi
xor edi, edi
mov eax, dword [esp]
mov ecx, ebx
mov edx, 0x59
lea eax, [edi + eax]
push eax
push edi
push ebp
call fcn.007c5800
mov eax, dword [esp + 0xc]
add esp, 0xc
inc edi
cmp edi, esi
jne 0x80bed8
mov edi, esi
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov ecx, eax
jmp 0x80c04d
mov cl, byte [esp + 0x20]
mov al, 1
mov dword [esp + 0xc], eax
mov eax, ecx
add al, 0xf7
cmp al, 2
jae 0x80bf26
mov ebp, dword [esp + 8]
jmp 0x80bf46
cmp cl, 3
jne 0x80bf35
mov eax, dword [esp]
mov ecx, eax
jmp 0x80c049
mov ebp, dword [esp + 8]
cmp cl, 0xd
je 0x80bf46
mov dword [esp + 0xc], 0
mov al, byte [esp + 0x20]
or al, 2
cmp al, 0xe
jne 0x80bf5a
mov eax, dword [esp]
mov ebp, eax
jmp 0x80bffc
cmp dword [esp + 0x10], 0
mov eax, dword [esp]
je 0x80bf6b
mov ebp, eax
jmp 0x80bffc
test ebp, ebp
jne 0x80bf76
mov ebp, eax
jmp 0x80bffc
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
cmp ecx, dword [edx]
jge 0x80bfa9
lea eax, [ecx + ecx*4]
inc ecx
movzx eax, word [edx + eax*4 + 0x14]
test eax, eax
je 0x80bf7c
mov esi, edi
mov edi, dword [esp + 0x14]
mov edx, ecx
lea eax, [eax + eax*4]
sub edx, dword [ebp + 4]
mov edi, dword [edi + 0x1c]
mov word [edi + eax*4], dx
mov edi, esi
mov edx, dword [ebp]
jmp 0x80bf7c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [ecx + 0x1c]
or al, 0xc
mov dword [esp + 0xc], eax
mov edx, dword [ecx]
test edx, edx
jg 0x80bfc7
mov eax, dword [esp]
mov ebp, eax
jmp 0x80bff4
mov ebp, dword [esp]
mov esi, edi
xor edi, edi
lea ebx, [edi + edi*4]
xor eax, eax
cmp word [ecx + ebx*4 + 0x14], 0
mov ebx, 0
setne al
cmovne ebp, ebx
inc edi
sub esi, eax
cmp edi, edx
jne 0x80bfce
mov ebx, dword [esp + 4]
mov eax, dword [esp]
mov edi, esi
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x38], al
cmp dword [ecx + 8], 0
je 0x80c030
cmp dword [esp + 0x18], 0
jle 0x80c030
mov eax, dword [esp + 0xc]
and al, 8
je 0x80c030
mov ebp, dword [esp + 8]
lea eax, [esp + 0x34]
xor ecx, ecx
mov dword [ebp + 0x24], eax
jmp 0x80c04d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00820860
mov edx, dword [esp + 0x64]
mov ecx, ebp
add esp, 4
mov ebp, dword [esp + 8]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x30], ecx
je 0x80c1c6
mov edx, dword [esp + 0x5c]
mov al, byte [edx + 1]
cmp al, 1
je 0x80c178
cmp al, 2
jne 0x80c184
mov eax, dword [esi + 0x2c]
mov ecx, ebx
lea ebp, [eax + 1]
add eax, edi
mov dword [esi + 0x2c], eax
mov edx, dword [edx + 8]
call fcn.007f3b50
mov eax, dword [esp + 0x5c]
mov ecx, ebx
mov edx, dword [eax + 8]
call fcn.007ebf40
mov ecx, ebx
mov byte [eax], 0x48
mov dword [eax + 4], 1
mov dword [esp + 0xc], ebp
mov dword [eax + 8], ebp
call fcn.007f2430
lea ecx, [edi - 1]
test edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ecx
jle 0x80c153
mov eax, dword [esp + 0x28]
xor edi, edi
add eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
lea ecx, [edi + edi*4]
mov eax, dword [eax + 0x1c]
mov edx, dword [eax + ecx*4 + 4]
mov ecx, esi
call fcn.007c8020
mov esi, eax
mov eax, dword [esp + 0xc]
cmp edi, dword [esp + 0x2c]
lea ebx, [edi + eax]
mov eax, dword [esp]
lea eax, [edi + eax]
jge 0x80c10f
mov ebp, dword [esp + 4]
mov edx, 0x34
mov ecx, ebp
push ebx
push dword [esp + 0x2c]
jmp 0x80c11f
mov ebp, dword [esp + 4]
mov edx, 0x35
mov ecx, ebp
push ebx
push dword [esp + 0x68]
push eax
call fcn.007c5800
add esp, 0xc
mov ecx, ebp
mov edx, 0xffffffff
push 0xfffffffffffffffe
push esi
call fcn.00782820
add esp, 8
mov ecx, ebp
mov edx, pe_nt_image_headers32
call fcn.00782720
inc edi
mov esi, dword [esp + 0x24]
mov ebx, ebp
cmp edi, dword [esp + 0x10]
jne 0x80c0d3
mov ecx, ebx
mov edx, 0x4d
push dword [esp + 0x2c]
push dword [esp + 0x10]
push dword [esp + 8]
call fcn.007c5800
add esp, 0xc
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0x10]
jmp 0x80c199
mov edx, dword [edx + 8]
mov ecx, ebx
call fcn.007f3b50
jmp 0x80c199
mov edx, dword [edx + 4]
mov ecx, esi
push dword [esp]
push edi
push dword [esp + 0x6c]
call fcn.00820880
add esp, 0xc
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
test ebp, ebp
jne 0x80c1c6
mov eax, dword [esp + 0x14]
mov ebp, ecx
mov ecx, ebx
mov edx, dword [eax + 0xc]
push dword [esp + 0x64]
call fcn.008109a0
mov ecx, ebp
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x64]
add esp, 4
mov al, byte [esp + 0x20]
dec al
cmp al, 0xd
ja case.0x80c1d7.4
movzx eax, al
jmp dword [eax*4 + 0xb5174c]
mov ecx, esi
call fcn.007f1720
mov ecx, dword [esp + 4]
mov ebx, ebp
mov ebp, eax
mov edx, 0x5b
push eax
push edi
mov eax, dword [esp + 8]
mov esi, edi
mov edi, eax
push eax
call fcn.007c5800
add esp, 0xc
mov ecx, dword [esp + 4]
mov edx, 0x83
push esi
push edi
push ebp
push dword [esp + 0x28]
call fcn.007826e0
add esp, 0x10
mov ecx, dword [esp + 0x24]
mov edx, ebp
mov ebp, ebx
mov ebx, dword [esp + 4]
call fcn.007f0bc0
jmp case.0x80c1d7.4
mov ecx, ebx
mov edx, 0x84
push edi
push dword [esp + 4]
push dword [esp + 0x24]
call fcn.007c5800
add esp, 0xc
jmp case.0x80c1d7.4
mov ebp, dword [esp + 0x18]
mov ecx, esi
lea edx, [ebp + 1]
mov dword [esp + 0xc], edx
call fcn.007eee80
mov ecx, ebx
mov ebx, eax
mov eax, edi
mov edx, 0x5b
mov edi, ebx
add edi, ebp
push edi
mov dword [esp + 0x14], eax
push eax
mov ebp, dword [esp + 8]
push ebp
call fcn.007c5800
add esp, 0xc
cmp byte [esp + 0x20], 6
jne 0x80c2d1
mov esi, dword [esp + 4]
mov ecx, esi
call fcn.007f2430
mov ecx, dword [esp + 0x1c]
add eax, 4
mov edx, 0x1e
lea ebp, [ecx + 1]
mov ecx, esi
push 0
push ebx
push eax
push ebp
call fcn.007826e0
add esp, 0x10
mov ecx, esi
mov esi, dword [esp + 0x24]
mov edx, 0x83
push dword [esp + 0x10]
push dword [esp + 4]
push ebx
push ebp
call fcn.007826e0
add esp, 0x10
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x80c2f6
mov ecx, esi
mov edx, ebp
push dword [esp + 0x18]
push 1
push dword [esp + 0x38]
push edi
push dword [esp + 0x24]
call fcn.00820920
add esp, 0x14
jmp 0x80c34d
mov ecx, esi
call fcn.007f1720
mov edi, dword [esp + 4]
mov esi, eax
mov edx, 0x78
mov ecx, edi
push eax
mov ebp, ebx
mov ebx, dword [esp + 0x20]
push ebx
call fcn.007c57e0
add esp, 8
mov ecx, edi
mov edx, 0x79
push esi
push ebp
push ebx
mov ebx, ebp
call fcn.007c5800
add esp, 0xc
mov ecx, edi
mov edx, 8
call fcn.00782720
mov ecx, dword [esp + 0x24]
mov edx, esi
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 8]
call fcn.007f0bc0
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
call fcn.007ef1d0
add esp, 4
mov ebx, dword [esp + 4]
jmp case.0x80c1d7.4
test ebp, ebp
je 0x80c38b
mov eax, ecx
mov ecx, esi
mov edx, ebp
push dword [esp + 0x18]
push edi
push eax
push dword [esp + 0xc]
push dword [esp + 0x24]
call fcn.00820920
add esp, 0x14
jmp 0x80c5e9
mov ecx, esi
mov ebx, edx
call fcn.007f1720
mov ecx, dword [esp + 4]
mov ebp, eax
mov edx, 0x5b
push edi
push dword [ebx + 0x10]
push eax
push edi
mov eax, dword [esp + 0x10]
mov ebx, esi
mov esi, edi
mov edi, eax
push eax
call fcn.007ebd50
add esp, 0x14
mov ecx, dword [esp + 4]
mov edx, 0x83
push esi
push edi
push ebp
push dword [esp + 0x28]
call fcn.007826e0
add esp, 0x10
mov ecx, ebx
mov ebx, dword [esp + 4]
mov edx, ebp
call fcn.007f0bc0
jmp 0x80c5ca
mov ecx, ebx
mov edx, 0x45
push dword [esp + 0x1c]
push 1
call fcn.007c57e0
add esp, 8
jmp case.0x80c1d7.4
test ebp, ebp
jne 0x80c36a
jmp 0x80c5ca
test ebp, ebp
jne 0x80c36a
cmp byte [esp + 0x20], 0xd
mov eax, dword [esp]
mov ecx, ebx
jne 0x80c434
mov eax, edx
mov edx, 0xe
push dword [eax + 4]
call fcn.007edd80
add esp, 4
jmp 0x80c5ca
mov edx, 0x50
push edi
push eax
call fcn.007c57e0
add esp, 8
jmp 0x80c5ca
mov eax, dword [edx + 0x14]
mov ebx, edi
mov ecx, esi
mov edi, dword [eax]
mov dword [esp + 0x18], eax
call fcn.007f1720
lea edx, [edi + 2]
mov ecx, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
call fcn.007eee80
cmp byte [esp + 0x20], 8
mov dword [esp + 0xc], edi
lea edi, [eax + edi + 1]
mov dword [esp + 0x10], eax
je 0x80c4a2
mov ecx, dword [esp + 4]
mov ebp, eax
mov edx, 0x5b
push edi
push ebx
push dword [esp + 8]
call fcn.007c5800
add esp, 0xc
mov dword [esp + 0x20], 0
jmp 0x80c4ff
mov ebp, dword [esp + 4]
mov eax, dword [esp + 0x1c]
mov edx, 0x1e
lea esi, [eax + 1]
mov ecx, ebp
push ebx
mov eax, dword [esp + 4]
push eax
push 0
push esi
call fcn.007826e0
add esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, ebp
mov edx, 0x5b
push edi
push ebx
push dword [esp + 8]
call fcn.007c5800
add esp, 0xc
mov ecx, ebp
mov edx, 0x83
push edi
push esi
call fcn.007c57e0
add esp, 8
mov ecx, ebp
mov ebp, dword [esp + 0x10]
mov edx, 0x10
call fcn.00782720
mov eax, dword [esp + 0xc]
mov ebx, dword [esp]
lea ecx, [ebp + eax]
mov ebp, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x30], ecx
jle 0x80c544
dec ebx
xor edi, edi
mov eax, dword [esp + 0x10]
lea ecx, [edi + edi*4]
mov edx, 0x4e
movzx esi, word [ebp + ecx*4 + 0x14]
mov ecx, dword [esp + 4]
lea eax, [edi + eax]
add esi, ebx
push eax
push esi
call fcn.007c57e0
add esp, 8
inc edi
cmp edi, dword [esp + 0xc]
jne 0x80c519
mov ebp, dword [esp + 4]
mov edx, 0x77
mov ecx, ebp
push dword [esp + 0x30]
push dword [esp + 0x20]
call fcn.007c57e0
add esp, 8
mov ebx, dword [esp + 0x2c]
mov edx, 0x5b
mov ecx, ebp
push ebx
mov edi, dword [esp + 0x2c]
push edi
mov esi, dword [esp + 0x18]
push esi
call fcn.007c5800
add esp, 0xc
mov edx, 0x83
mov ecx, ebp
push edi
push esi
push ebx
push dword [esp + 0x28]
call fcn.007826e0
add esp, 0x10
mov edx, dword [esp + 0x20]
mov ebx, ebp
test edx, edx
je 0x80c5a4
mov ecx, ebx
call fcn.007ebd40
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.007f0bc0
mov edx, dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.007ef1d0
add esp, 4
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x80c5e9
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x80c5e9
mov ecx, ebx
mov edx, 0x3b
push dword [esp + 0x68]
push eax
call fcn.007c57e0
add esp, 8
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00980459
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret