Function at 0x817600
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 [0xbd33e0]
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 0x817644
mov ecx, dword [esp + 0x5c]
movzx ebp, byte [ecx + 1]
test eax, eax
je 0x817651
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 0x817676
test edi, edi
jne 0x817676
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [eax + 0xc]
push dword [esp + 0x64]
call fcn.0081c1d0
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 0x8176cb
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x8176a7
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], 0
jmp 0x8176bf
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 0x8176ee
mov edx, eax
lea ecx, [eax + edi]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x18], 0
cmp ecx, eax
jg 0x8176e7
mov eax, edx
mov edx, dword [esp + 0x60]
jmp 0x8176f5
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 0x81774e
test edi, edi
jg 0x817714
mov ecx, eax
jmp 0x817889
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.007d10f0
mov eax, dword [esp + 0xc]
add esp, 0xc
inc edi
cmp edi, esi
jne 0x817718
mov edi, esi
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov ecx, eax
jmp 0x81788d
mov cl, byte [esp + 0x20]
mov al, 1
mov dword [esp + 0xc], eax
mov eax, ecx
add al, 0xf7
cmp al, 2
jae 0x817766
mov ebp, dword [esp + 8]
jmp 0x817786
cmp cl, 3
jne 0x817775
mov eax, dword [esp]
mov ecx, eax
jmp 0x817889
mov ebp, dword [esp + 8]
cmp cl, 0xd
je 0x817786
mov dword [esp + 0xc], 0
mov al, byte [esp + 0x20]
or al, 2
cmp al, 0xe
jne 0x81779a
mov eax, dword [esp]
mov ebp, eax
jmp 0x81783c
cmp dword [esp + 0x10], 0
mov eax, dword [esp]
je 0x8177ab
mov ebp, eax
jmp 0x81783c
test ebp, ebp
jne 0x8177b6
mov ebp, eax
jmp 0x81783c
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
cmp ecx, dword [edx]
jge 0x8177e9
lea eax, [ecx + ecx*4]
inc ecx
movzx eax, word [edx + eax*4 + 0x14]
test eax, eax
je 0x8177bc
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 0x8177bc
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 0x817807
mov eax, dword [esp]
mov ebp, eax
jmp 0x817834
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 0x81780e
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 0x817870
cmp dword [esp + 0x18], 0
jle 0x817870
mov eax, dword [esp + 0xc]
and al, 8
je 0x817870
mov ebp, dword [esp + 8]
lea eax, [esp + 0x34]
xor ecx, ecx
mov dword [ebp + 0x24], eax
jmp 0x81788d
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.0082c0a0
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 0x817a06
mov edx, dword [esp + 0x5c]
mov al, byte [edx + 1]
cmp al, 1
je 0x8179b8
cmp al, 2
jne 0x8179c4
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.007ff3d0
mov eax, dword [esp + 0x5c]
mov ecx, ebx
mov edx, dword [eax + 8]
call fcn.007f77c0
mov ecx, ebx
mov byte [eax], 0x48
mov dword [eax + 4], 1
mov dword [esp + 0xc], ebp
mov dword [eax + 8], ebp
call fcn.007fdcb0
lea ecx, [edi - 1]
test edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], ecx
jle 0x817993
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.007d3920
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 0x81794f
mov ebp, dword [esp + 4]
mov edx, 0x34
mov ecx, ebp
push ebx
push dword [esp + 0x2c]
jmp 0x81795f
mov ebp, dword [esp + 4]
mov edx, 0x35
mov ecx, ebp
push ebx
push dword [esp + 0x68]
push eax
call fcn.007d10f0
add esp, 0xc
mov ecx, ebp
mov edx, 0xffffffff
push 0xfffffffffffffffe
push esi
call fcn.0078e110
add esp, 8
mov ecx, ebp
mov edx, pe_nt_image_headers32
call fcn.0078e010
inc edi
mov esi, dword [esp + 0x24]
mov ebx, ebp
cmp edi, dword [esp + 0x10]
jne 0x817913
mov ecx, ebx
mov edx, 0x4d
push dword [esp + 0x2c]
push dword [esp + 0x10]
push dword [esp + 8]
call fcn.007d10f0
add esp, 0xc
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0x10]
jmp 0x8179d9
mov edx, dword [edx + 8]
mov ecx, ebx
call fcn.007ff3d0
jmp 0x8179d9
mov edx, dword [edx + 4]
mov ecx, esi
push dword [esp]
push edi
push dword [esp + 0x6c]
call fcn.0082c0c0
add esp, 0xc
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x30]
test ebp, ebp
jne 0x817a06
mov eax, dword [esp + 0x14]
mov ebp, ecx
mov ecx, ebx
mov edx, dword [eax + 0xc]
push dword [esp + 0x64]
call fcn.0081c1d0
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.0x817a17.4
movzx eax, al
jmp dword [eax*4 + 0xb59dac]
mov ecx, esi
call fcn.007fcfa0
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.007d10f0
add esp, 0xc
mov ecx, dword [esp + 4]
mov edx, 0x83
push esi
push edi
push ebp
push dword [esp + 0x28]
call fcn.0078dfd0
add esp, 0x10
mov ecx, dword [esp + 0x24]
mov edx, ebp
mov ebp, ebx
mov ebx, dword [esp + 4]
call fcn.007fc440
jmp case.0x817a17.4
mov ecx, ebx
mov edx, 0x84
push edi
push dword [esp + 4]
push dword [esp + 0x24]
call fcn.007d10f0
add esp, 0xc
jmp case.0x817a17.4
mov ebp, dword [esp + 0x18]
mov ecx, esi
lea edx, [ebp + 1]
mov dword [esp + 0xc], edx
call fcn.007fa700
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.007d10f0
add esp, 0xc
cmp byte [esp + 0x20], 6
jne 0x817b11
mov esi, dword [esp + 4]
mov ecx, esi
call fcn.007fdcb0
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.0078dfd0
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.0078dfd0
add esp, 0x10
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x817b36
mov ecx, esi
mov edx, ebp
push dword [esp + 0x18]
push 1
push dword [esp + 0x38]
push edi
push dword [esp + 0x24]
call fcn.0082c160
add esp, 0x14
jmp 0x817b8d
mov ecx, esi
call fcn.007fcfa0
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.007d10d0
add esp, 8
mov ecx, edi
mov edx, 0x79
push esi
push ebp
push ebx
mov ebx, ebp
call fcn.007d10f0
add esp, 0xc
mov ecx, edi
mov edx, 8
call fcn.0078e010
mov ecx, dword [esp + 0x24]
mov edx, esi
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 8]
call fcn.007fc440
mov ecx, esi
mov edx, ebx
push dword [esp + 0xc]
call fcn.007faa50
add esp, 4
mov ebx, dword [esp + 4]
jmp case.0x817a17.4
test ebp, ebp
je 0x817bcb
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.0082c160
add esp, 0x14
jmp 0x817e29
mov ecx, esi
mov ebx, edx
call fcn.007fcfa0
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.007f75d0
add esp, 0x14
mov ecx, dword [esp + 4]
mov edx, 0x83
push esi
push edi
push ebp
push dword [esp + 0x28]
call fcn.0078dfd0
add esp, 0x10
mov ecx, ebx
mov ebx, dword [esp + 4]
mov edx, ebp
call fcn.007fc440
jmp 0x817e0a
mov ecx, ebx
mov edx, 0x45
push dword [esp + 0x1c]
push 1
call fcn.007d10d0
add esp, 8
jmp case.0x817a17.4
test ebp, ebp
jne 0x817baa
jmp 0x817e0a
test ebp, ebp
jne 0x817baa
cmp byte [esp + 0x20], 0xd
mov eax, dword [esp]
mov ecx, ebx
jne 0x817c74
mov eax, edx
mov edx, 0xe
push dword [eax + 4]
call fcn.007f9600
add esp, 4
jmp 0x817e0a
mov edx, 0x50
push edi
push eax
call fcn.007d10d0
add esp, 8
jmp 0x817e0a
mov eax, dword [edx + 0x14]
mov ebx, edi
mov ecx, esi
mov edi, dword [eax]
mov dword [esp + 0x18], eax
call fcn.007fcfa0
lea edx, [edi + 2]
mov ecx, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edx
call fcn.007fa700
cmp byte [esp + 0x20], 8
mov dword [esp + 0xc], edi
lea edi, [eax + edi + 1]
mov dword [esp + 0x10], eax
je 0x817ce2
mov ecx, dword [esp + 4]
mov ebp, eax
mov edx, 0x5b
push edi
push ebx
push dword [esp + 8]
call fcn.007d10f0
add esp, 0xc
mov dword [esp + 0x20], 0
jmp 0x817d3f
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.0078dfd0
add esp, 0x10
mov dword [esp + 0x20], eax
mov ecx, ebp
mov edx, 0x5b
push edi
push ebx
push dword [esp + 8]
call fcn.007d10f0
add esp, 0xc
mov ecx, ebp
mov edx, 0x83
push edi
push esi
call fcn.007d10d0
add esp, 8
mov ecx, ebp
mov ebp, dword [esp + 0x10]
mov edx, 0x10
call fcn.0078e010
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 0x817d84
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.007d10d0
add esp, 8
inc edi
cmp edi, dword [esp + 0xc]
jne 0x817d59
mov ebp, dword [esp + 4]
mov edx, 0x77
mov ecx, ebp
push dword [esp + 0x30]
push dword [esp + 0x20]
call fcn.007d10d0
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.007d10f0
add esp, 0xc
mov edx, 0x83
mov ecx, ebp
push edi
push esi
push ebx
push dword [esp + 0x28]
call fcn.0078dfd0
add esp, 0x10
mov edx, dword [esp + 0x20]
mov ebx, ebp
test edx, edx
je 0x817de4
mov ecx, ebx
call fcn.007f75c0
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.007fc440
mov edx, dword [esp + 0x10]
mov ecx, esi
push edi
call fcn.007faa50
add esp, 4
mov ebp, dword [esp + 8]
test ebp, ebp
jne 0x817e29
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x817e29
mov ecx, ebx
mov edx, 0x3b
push dword [esp + 0x68]
push eax
call fcn.007d10d0
add esp, 8
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00989fe9
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret