Function at 0x40ad35
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov byte [0x5898d0], 0
mov byte [0x5898e0], 0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp + 8], 1
jle 0x40b2b5
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x40ae0a
mov edx, 0x525c9c
test edx, edx
je 0x40ae0a
push str._vendor
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40ae0a
cmp dword [ebp + 8], 2
jle 0x40ae0a
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
push 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
push 0x5898d0
call fcn.0042a687
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x53f65c]
pop esp
not byte [ebx]
push edx
call fcn.00437375
add esp, 8
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
jmp 0x40ad6f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x40ae55
mov eax, 0x525cac
test eax, eax
je 0x40ae55
push str._all
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40ae55
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov dword [0x53f66c], 1
jmp 0x40ad6f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x40aea0
mov eax, 0x525cbc
test eax, eax
je 0x40aea0
push str._force
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40aea0
mov dword [0x589ae8], 1
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
jmp 0x40ad6f
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 0
je 0x40aef4
mov eax, 0x525ccc
test eax, eax
je 0x40aef4
push str._verbose
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40aef4
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
push 1
push 0x44
mov edx, dword [0x53f65c]
push edx
call fcn.0041e4a0
add esp, 0xc
jmp 0x40ad6f
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x40af4a
mov ecx, 0x525ce4
test ecx, ecx
je 0x40af4a
push str._pre_v6
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40af4a
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
push 0x525cf4
push 0x41
mov eax, dword [0x53f65c]
push eax
call fcn.0041e4a0
add esp, 0xc
jmp 0x40ad6f
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 0
je 0x40af9e
mov edx, 0x525cfc
test edx, edx
je 0x40af9e
push str._fqdn
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40af9e
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
push 1
push 0x6e
mov ecx, dword [0x53f65c]
push ecx
call fcn.0041e4a0
add esp, 0xc
jmp 0x40ad6f
mov dword [ebp - 4], 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
movsx ecx, byte [eax]
cmp ecx, 0x2d
jne case.0x40aff0.8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
movsx ecx, byte [eax + 2]
test ecx, ecx
jne case.0x40aff0.8
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 0x63
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x13
ja case.0x40aff0.8
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [eax + 0x40b2df]
jmp dword [edx*4 + 0x40b2bb]
cmp dword [ebp + 8], 2
jle 0x40b066
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
movsx eax, byte [edx]
cmp eax, 0x2d
je 0x40b066
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
sub edx, 1
mov dword [ebp + 8], edx
push 1
push 2
mov eax, dword [0x53f65c]
push eax
call fcn.0041e4a0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
push 0x2e
mov eax, dword [0x53f65c]
push eax
call fcn.0041e4a0
add esp, 0xc
push 0x200
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
push 0x5898e0
call fcn.0042a687
add esp, 0xc
mov dword [ebp - 4], 0
jmp case.0x40aff0.8
cmp dword [ebp + 8], 2
jle 0x40b113
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
movsx edx, byte [ecx]
cmp edx, 0x2d
je 0x40b113
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
push 0x53d480
push 0x525d0c
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.0043b59a
add esp, 0x10
test eax, eax
jne 0x40b113
call fcn.0050cda4
mov edx, dword [eax]
cmp edx, dword [0x53d8e0]
jl 0x40b0dc
mov dword [ebp - 0x10], 0x525d10
jmp 0x40b0ed
call fcn.0050cda4
mov eax, dword [eax]
mov ecx, dword [eax*4 + 0x53d830]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push 0x525d24
mov edx, dword [0x589ae4]
push edx
call fcn.0050c6ac
add esp, 0x10
push 1
call fcn.0050cf49
jmp case.0x40aff0.8
cmp dword [ebp + 8], 2
jle 0x40b1c5
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
movsx edx, byte [ecx]
cmp edx, 0x2d
je 0x40b1c5
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 4
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
push 0x525d38
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [0x53f65c]
push ecx
call fcn.0043b3d0
add esp, 0xc
mov dword [0x589ae4], eax
cmp dword [0x589ae4], 0
jne 0x40b1c5
call fcn.0050cda4
mov edx, dword [eax]
cmp edx, dword [0x53d8e0]
jl 0x40b18e
mov dword [ebp - 0x14], 0x525d3c
jmp 0x40b19f
call fcn.0050cda4
mov eax, dword [eax]
mov ecx, dword [eax*4 + 0x53d830]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
push ecx
push str.Cant_open__s:__s_n
mov edx, dword [0x589ae4]
push edx
call fcn.0050c6ac
add esp, 0x10
push 1
call fcn.0050cf49
jmp case.0x40aff0.8
cmp dword [ebp + 0x18], 4
jne 0x40b1e1
mov dword [0x53f660], 1
mov dword [ebp - 4], 0
jmp case.0x40aff0.8
push 1
push 4
mov eax, dword [0x53f65c]
push eax
call fcn.0041e4a0
add esp, 0xc
mov dword [ebp - 4], 0
jmp case.0x40aff0.8
mov dword [0x525a00], 0
mov dword [0x5259fc], 0
mov dword [ebp - 4], 0
jmp case.0x40aff0.8
mov dword [0x53f664], 0
mov dword [0x53f650], 1
mov dword [ebp - 4], 0
jmp case.0x40aff0.8
push 0x525d64
mov ecx, dword [ebp - 8]
push ecx
call fcn.0050c590
add esp, 8
test eax, eax
jne 0x40b25c
mov dword [0x53f654], 0
jmp case.0x40aff0.8
mov dword [0x53f654], 1
cmp dword [ebp - 4], 0
je 0x40b29e
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0xf
jle 0x40b280
call fcn.0040b2f3
mov eax, 1
jmp 0x40b2b7
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 4
mov dword [ebp + 0xc], edx
jmp 0x40ad6f
xor eax, eax
mov esp, ebp
pop ebp
ret