Function at 0x4087ac
Capabilities:
Terminate process

Disassembly:
mov eax, 0x418dd8
call fcn.0040e6c0
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push 7
mov dword [0x404adc], edi
pop esi
mov eax, dword [0x404ae0]
mov dword [ebp + 0xc], edi
cmp eax, dword [ebp + 8]
jge 0x4087e9
mov eax, dword [ebx + eax*4]
cmp eax, edi
je 0x4087e9
cmp byte [eax], 0x2f
jne 0x4087e9
mov byte [eax], 0x2d
lea eax, [ebp + 0xc]
push eax
push 0x4040b8
push dword [0x4040b0]
push ebx
push dword [ebp + 8]
call fcn.0040b8f0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4089f0
cmp eax, 0x6c
jg 0x408877
je 0x408868
sub eax, 0x3f
je 0x408984
sub eax, 0x22
je 0x408859
dec eax
dec eax
je 0x40884a
dec eax
je 0x40883e
sub eax, 5
jne 0x408978
mov eax, dword [0x41b548]
mov dword [0x4194d4], eax
jmp 0x4087cd
mov eax, dword [0x41b548]
mov dword [0x4194c8], eax
jmp 0x4087cd
mov eax, dword [0x41b548]
mov dword [0x4194c4], eax
jmp 0x4087cd
mov eax, dword [0x41b548]
mov dword [0x4194c0], eax
jmp 0x4087cd
mov eax, dword [0x41b548]
mov dword [0x4194cc], eax
jmp 0x4087cd
sub eax, 0x6e
je 0x40895a
sub eax, 5
je 0x40889b
dec eax
jne 0x408974
mov eax, dword [0x41b548]
mov dword [0x4194dc], eax
jmp 0x4087cd
push 0x40498c
push dword [0x41b548]
call fcn.0040e260
pop ecx
test eax, eax
pop ecx
jne 0x4088c0
mov dword [0x4194d0], 1
jmp 0x4087cd
push 0x404988
push dword [0x41b548]
call fcn.0040e260
pop ecx
test eax, eax
pop ecx
jne 0x4088e5
mov dword [0x4194d0], 2
jmp 0x4087cd
push 0x40497c
push dword [0x41b548]
call fcn.0040e260
pop ecx
test eax, eax
pop ecx
je 0x4088d6
push 0x404978
push dword [0x41b548]
call fcn.0040e260
pop ecx
test eax, eax
pop ecx
jne 0x40891c
mov dword [0x4194d0], esi
jmp 0x4087cd
push 0x40496c
push dword [0x41b548]
call fcn.0040e260
pop ecx
test eax, eax
pop ecx
je 0x408911
push dword [0x41b548]
call fcn.0040e246
cmp eax, 1
pop ecx
mov dword [0x4194d0], eax
jle 0x4089d8
cmp eax, 8
jg 0x4089d8
jmp 0x4087cd
push dword [0x41b548]
call fcn.0040e246
cmp eax, edi
pop ecx
mov dword [0x4194d8], eax
jl 0x4089e4
jmp 0x4087cd
dec eax
dec eax
je 0x40898f
call fcn.004087a0
push 1
call fcn.0040e0e6
call fcn.004087a0
push edi
call fcn.0040e0e6
push 0x404954
push 0x41ad88
call fcn.004091dc
pop ecx
mov edi, eax
pop ecx
push 0xa
mov ecx, edi
call fcn.00408ccd
mov ecx, edi
call fcn.0040cff1
push 0x404918
push edi
call fcn.004091dc
pop ecx
mov esi, eax
pop ecx
push 0xa
mov ecx, esi
call fcn.00408ccd
mov ecx, esi
call fcn.0040cff1
push 0
call fcn.0040e0e6
call fcn.004087a0
push 1
call fcn.0040e0e6
call fcn.004087a0
push 1
call fcn.0040e0e6
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jge 0x408a3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040b6d0
pop ecx
push eax
push 0x404900
push 0x41aeb0
call fcn.004091dc
pop ecx
pop ecx
push eax
call fcn.004091dc
pop ecx
mov esi, eax
pop ecx
push 0xa
mov ecx, esi
call fcn.00408ccd
mov ecx, esi
call fcn.0040cff1
push 2
call fcn.0040e0e6
mov eax, dword [0x404ae0]
mov dword [ebp + 0xc], edi
cmp eax, dword [ebp + 8]
jl 0x408a54
call fcn.004087a0
push 1
call fcn.0040e0e6
mov esi, dword [ebx + eax*4]
inc eax
cmp esi, edi
mov dword [ebp - 0x14], esi
mov dword [0x404ae0], eax
je 0x408c79
cmp byte [esi], 0
je 0x408c79
cmp eax, dword [ebp + 8]
jg 0x408a84
mov ebx, dword [ebx + eax*4]
inc eax
mov dword [ebp + 8], ebx
mov dword [0x404ae0], eax
jmp 0x408a89
xor ebx, ebx
mov dword [ebp + 8], ebx
cmp dword [0x4194cc], edi
mov dword [ebp - 4], edi
je 0x408b5d
mov al, byte [ebp + 0xb]
sub esp, 0x10
mov ebx, esp
mov dword [ebp - 0x18], esp
push edi
mov ecx, ebx
mov byte [ebx], al
call fcn.00408e76
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, ebx
call fcn.00408f7b
lea ecx, [ebp - 0x1c]
call fcn.00409430
test byte [0x4194a8], 1
mov byte [ebp - 4], 1
jne 0x408b38
mov al, byte [ebp + 0xb]
or byte [0x4194a8], 1
mov ebx, dword [0x4194cc]
push 0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00408e76
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00408f7b
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x1c]
push eax
push 0x4194b0
mov byte [ebp - 4], 2
call fcn.004095b9
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00408e76
push 0x408c85
call fcn.0040e078
pop ecx
mov ebx, dword [0x4194b4]
test ebx, ebx
jne 0x408b47
mov ebx, 0x401108
push dword [ebp - 0x1c]
call fcn.0040bad0
pop ecx
jmp 0x408b5b
xor edi, edi
or dword [ebp - 4], 0xffffffff
cmp ebx, edi
je 0x408c6d
cmp byte [ebx], 0
je 0x408c6d
mov al, byte [ebp + 0xb]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00408e76
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
pop esi
dec ecx
push ecx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00408f7b
mov eax, dword [ebp - 0x24]
push esi
add eax, 0xfffffffc
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00408c9a
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 5
test eax, eax
jne 0x408bc1
mov eax, 0x401108
mov esi, 0x4048f8
push esi
push eax
call fcn.0040e260
pop ecx
test eax, eax
pop ecx
je 0x408bf5
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00408f16
mov ebx, dword [ebp - 0x28]
test ebx, ebx
jne 0x408bf5
mov ebx, 0x401108
push dword [0x4194c0]
push dword [0x4194d8]
push dword [0x4194d4]
push dword [0x4194c4]
push dword [0x4194c8]
push ebx
push dword [ebp - 0x14]
call fcn.0040b5e4
add esp, 0x1c
test eax, eax
jge 0x408c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov dword [ebp + 0xc], eax
call fcn.0040b6d0
pop ecx
push eax
push 0x4048dc
push 0x41aeb0
call fcn.004091dc
pop ecx
pop ecx
push eax
call fcn.004091dc
pop ecx
mov esi, eax
pop ecx
push 0xa
mov ecx, esi
call fcn.00408ccd
mov ecx, esi
call fcn.0040cff1
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp + 0xc]
call fcn.0040e0e6
call fcn.004087a0
push 1
call fcn.0040e0e6
call fcn.004087a0
push 1
call fcn.0040e0e6
push 1
mov ecx, 0x4194b0
call fcn.00408e76
ret