Function at 0x4046a0
Capabilities:
Delete file
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f568
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x42a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x2c], edi
call fcn.0040b8e0
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405350
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 8
jb 0x404705
push dword [ebp - 0x44]
call fcn.0040ed3b
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, edi
mov dword [ebp - 0x34], 0
cmovae ecx, dword [ebp - 0x28]
mov word [ebp - 0x44], ax
call fcn.00404420
test eax, eax
je 0x40475d
mov esi, dword [ebp - 0x2c]
mov edi, dword [edi + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x40475a
jmp 0x404740
cmp dword [esi + 0x14], 8
jb 0x40474a
mov eax, dword [esi]
jmp 0x40474c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0x18
cmp esi, edi
jne 0x404740
mov edi, dword [ebp - 0x2c]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x2c], eax
cmp esi, eax
je 0x40479d
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x404783
push dword [esi]
call fcn.0040ed3b
mov eax, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x404770
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, ebx
sub esp, 0x10
mov dword [edi + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00404970
test eax, eax
jne 0x40482f
push 8
lea esi, [ebx + 0x30]
push 0x426488
mov ecx, esi
call fcn.00401830
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0040b400
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4047e4
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x4047ec
mov esi, dword [esi]
push eax
push esi
push 0x42649c
push 3
push str.AgNet::CSClientSocket::DetectLive
push 0x449
push str.SClientSocket.cpp
call fcn.0040bc30
add esp, 0x1c
cmp dword [ebp - 0x48], 8
jb 0x40481d
push dword [ebp - 0x5c]
call fcn.0040ed3b
add esp, 4
push 0xffffffffffffffff
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor esi, esi
jmp 0x40493f
push 0xea60
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404871
push 4
lea esi, [ebx + 0x30]
push 0x4264fc
mov ecx, esi
call fcn.00401830
cmp dword [esi + 0x14], 8
jb 0x40485d
mov esi, dword [esi]
push esi
push 0x425964
push 3
push str.AgNet::CSClientSocket::DetectLive
push 0x456
jmp 0x4048c0
test eax, eax
jne 0x404895
push 0x42651c
push 3
push str.AgNet::CSClientSocket::DetectLive
push 0x462
push str.SClientSocket.cpp
call fcn.0040bc30
add esp, 0x14
jmp 0x404905
push 4
lea esi, [ebx + 0x30]
push 0x426528
mov ecx, esi
call fcn.00401830
cmp dword [esi + 0x14], 8
jb 0x4048ae
mov esi, dword [esi]
push esi
push 0x425964
push 3
push str.AgNet::CSClientSocket::DetectLive
push 0x468
push str.SClientSocket.cpp
call fcn.0040bc30
add esp, 0x18
mov dword [ebx + 0x24], 0
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, eax
call fcn.00402b10
mov dword [ebx + 0x24], eax
test eax, eax
je 0x4048fa
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x404905
push 0xfffffffffffffffe
push dword [ebx + 0x28]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebx + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 0x2c]
call esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, edi
cmovae ecx, dword [ebp - 0x28]
call fcn.00404420
mov esi, eax
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x40493f
push 9
push str.gb0R
lea ecx, [ebx + 0x30]
call fcn.00401830
cmp dword [ebp - 0x14], 8
jb 0x404950
push dword [ebp - 0x28]
call fcn.0040ed3b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040ed40
mov esp, ebp
pop ebp
ret 8