Function at 0x404b40
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 0x404b81
cmp ebp, esi
je 0x404e67
mov byte [ebp], 0
jmp 0x404ba2
cmp ebp, esi
je 0x404b8b
cmp byte [ebp], 0
jne 0x404ba2
mov eax, dword [esp + 0x150]
cmp eax, esi
je 0x404e67
cmp dword [eax], esi
je 0x404e67
push 0x40d39c
mov dword [esp + 0x24], 0x128
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x14], ebx
je 0x404e58
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d380
push ebx
call esi
push 0x40d370
push ebx
mov edi, eax
call esi
mov ebx, eax
mov eax, dword [esp + 0x14]
push 0x40d360
push eax
call esi
test ebx, ebx
mov dword [esp + 0x1c], eax
je 0x404e4d
test eax, eax
je 0x404e4d
test edi, edi
je 0x404e4d
push 0
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x404e4d
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x404e46
mov ebx, dword [esp + 0x154]
test ebx, ebx
jle 0x404c8f
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 0x404e13
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 0x40d30c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [esp + 0x10], 1
jmp 0x404e13
test ebp, ebp
je 0x404d99
cmp byte [ebp], 0
je 0x404d99
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 0x404cc8
lea ecx, [esp + 0x44]
push 0x5c
push ecx
call esi
mov esi, eax
add esp, 8
inc esi
jmp 0x404ccc
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 0x404cf6
push 1
push 0
push 0
lea edx, [esp + 0x50]
push ebp
push edx
call fcn.004024d0
add esp, 0x14
test eax, eax
jne 0x404d1c
push 0x5c
push ebp
call edi
add esp, 8
test eax, eax
jne 0x404e13
push 1
push eax
push eax
push ebp
push esi
call fcn.004024d0
add esp, 0x14
test eax, eax
je 0x404e13
mov edx, dword [esp + 0x158]
test edx, edx
je 0x404d48
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 0x404e2a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [esp + 0x28]
je 0x404e13
push 1
push 0
push 0
lea ecx, [esp + 0x50]
push 0x40d300
push ecx
call fcn.004024d0
add esp, 0x14
test eax, eax
jne 0x404e13
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 0x404e13
jmp 0x404dff
mov eax, dword [esp + 0x150]
mov edx, dword [esp + 0x28]
cmp dword [eax], edx
jne 0x404e13
mov eax, dword [esp + 0x158]
test eax, eax
je 0x404dd9
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 0x404e39
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
je 0x404e13
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404e13
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 0x404e46
jmp 0x404c2a
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