Function at 0x404b90
Capabilities:
Terminate process

Disassembly:
sub esp, 0x138
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x148]
push edi
xor esi, esi
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x10], esi
cmp eax, esi
jle 0x404bd1
cmp ebp, esi
je 0x404eb7
mov byte [ebp], 0
jmp 0x404bf2
cmp ebp, esi
je 0x404bdb
cmp byte [ebp], 0
jne 0x404bf2
mov eax, dword [esp + 0x150]
cmp eax, esi
je 0x404eb7
cmp dword [eax], esi
je 0x404eb7
push 0x40d394
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x14], ebx
je 0x404ea8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d378
push ebx
call esi
push 0x40d368
push ebx
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x14]
push 0x40d358
push eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x404e9d
test eax, eax
je 0x404e9d
test edi, edi
je 0x404e9d
push 0
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x404e9d
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x404e96
mov ebx, dword [esp + 0x154]
test ebx, ebx
jle 0x404cdf
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x44]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
cmp eax, ebx
jge 0x404e63
lea ecx, [esp + 0x44]
mov edi, ebp
push ecx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, ebp
push 0x40d304
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [esp + 0x10], 1
jmp 0x404e63
test ebp, ebp
je 0x404de9
cmp byte [ebp], 0
je 0x404de9
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea eax, [esp + 0x44]
push 0x5c
push eax
call esi
add esp, 8
test eax, eax
je 0x404d18
lea ecx, [esp + 0x44]
push 0x5c
push ecx
call esi
mov esi, eax
add esp, 8
inc esi
jmp 0x404d1c
lea esi, [esp + 0x44]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x5c
push ebp
call edi
add esp, 8
test eax, eax
je 0x404d46
push 1
push 0
push 0
lea edx, [esp + 0x50]
push ebp
push edx
call fcn.00402500
add esp, 0x14
test eax, eax
jne 0x404d6c
push 0x5c
push ebp
call edi
add esp, 8
test eax, eax
jne 0x404e63
push 1
push eax
push eax
push ebp
push esi
call fcn.00402500
add esp, 0x14
test eax, eax
je 0x404e63
mov edx, dword [esp + 0x158]
test edx, edx
je 0x404d98
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x404e7a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [esp + 0x28]
je 0x404e63
push 1
push 0
push 0
lea ecx, [esp + 0x50]
push 0x40d2f8
push ecx
call fcn.00402500
add esp, 0x14
test eax, eax
jne 0x404e63
mov edx, dword [esp + 0x28]
push edx
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404e63
jmp 0x404e4f
mov eax, dword [esp + 0x150]
mov edx, dword [esp + 0x28]
cmp dword [eax], edx
jne 0x404e63
mov eax, dword [esp + 0x158]
test eax, eax
je 0x404e29
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x158]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x404e89
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x404e63
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404e63
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x404e96
jmp 0x404c7a
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x138
ret