Function at 0x408bb2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1508
call fcn.00410a30
push ebx
push esi
push edi
call fcn.00408b35
test al, al
jne 0x408bd6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x408e4f
xor ebx, ebx
cmp byte [0x42e874], bl
je 0x408d31
cmp byte [ebp + 0xc], bl
je 0x408bf1
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
jmp 0x408c2b
cmp dword [ebp + 8], ebx
jne 0x408bfb
mov dword [ebp + 8], ebx
jmp 0x408c2b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00410a30
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
mov word [edi], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1508]
push 0x3e8
push eax
call dword [0x42e840]
test eax, eax
jne 0x408c4f
mov eax, 0x2bd
jmp 0x408e4f
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], ebx
shr eax, 2
mov dword [ebp - 0x10], eax
je 0x408e4a
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x1508]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x568]
push 0x420884
push eax
call fcn.00410f9f
mov eax, dword [ebp - 4]
pop ecx
pop ecx
push dword [eax]
push ebx
push 0x410
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x408cca
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call dword [0x42e848]
test eax, eax
je 0x408cca
lea eax, [ebp - 0x568]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [0x42e83c]
push dword [ebp - 0xc]
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x568]
push eax
call fcn.0041e25c
pop ecx
test eax, eax
pop ecx
je 0x408cf8
inc dword [ebp + 0xc]
add dword [ebp - 4], 4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jb 0x408c76
jmp 0x408e4a
mov eax, dword [ebp + 0xc]
push dword [ebp + eax*4 - 0x1508]
push ebx
push 1
call edi
mov edi, eax
cmp edi, ebx
je 0x408d27
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
jne 0x408e91
mov ebx, 0x25a
jmp 0x408e91
mov eax, 0x25c
jmp 0x408e4f
cmp byte [ebp + 0xc], bl
je 0x408d73
cmp dword [ebp + 8], ebx
jne 0x408d40
mov dword [ebp - 4], ebx
jmp 0x408d79
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00410a30
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
mov dword [ebp - 4], esi
jmp 0x408d79
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push ebx
push 2
call dword [0x42e870]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x408d94
mov eax, 0x2c0
jmp 0x408e4f
lea ecx, [ebp - 0x13c]
mov edi, 0x128
push ecx
push eax
mov dword [ebp - 0x13c], edi
call dword [0x42e854]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test eax, eax
je 0x408e45
push dword [ebp - 0x134]
push 8
call dword [0x42e870]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
je 0x408e5a
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x360], 0x224
push ecx
push eax
call dword [0x42e868]
test eax, eax
je 0x408e22
push dword [ebp - 4]
lea eax, [ebp - 0x340]
push eax
call fcn.00413190
pop ecx
test eax, eax
pop ecx
je 0x408e61
lea eax, [ebp - 0x360]
mov dword [ebp - 0x360], 0x224
push eax
push dword [ebp + 0xc]
call dword [0x42e860]
jmp 0x408ded
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], edi
push eax
push dword [ebp + 8]
call dword [0x42e864]
test eax, eax
jne 0x408dbb
push dword [ebp + 8]
call esi
mov eax, 0x25b
lea esp, [ebp - 0x1514]
pop edi
pop esi
pop ebx
leave
ret
mov edi, 0x2c0
jmp 0x408ea2
push dword [ebp - 0x134]
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x408e98
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
jne 0x408e87
mov ebx, 0x25a
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
call esi
push edi
call esi
mov eax, ebx
jmp 0x408e4f
push dword [ebp + 0xc]
call esi
mov edi, 0x25c
push dword [ebp + 8]
call esi
mov eax, edi
jmp 0x408e4f