Function at 0x5416f4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.004052dc
xor eax, eax
push ebp
push 0x541c66
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x541c3b
mov byte [ebp - 0x26], 0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.005414d0
cmp dword [ebp - 0x30], 0
je 0x541c3b
mov eax, dword [ebp - 0xc]
call fcn.004050ec
mov ebx, eax
xor ecx, ecx
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.005414b8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.005412c4
cmp ebx, eax
jne 0x541c3b
xor ecx, ecx
mov dl, 9
mov eax, dword [ebp - 4]
call fcn.005414b8
push 0xffff
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x41c868]
call fcn.00421bfc
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41c958]
call fcn.00403e90
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x541c31
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
call fcn.00404e10
lea eax, [ebp - 0x34]
call fcn.00404e10
lea eax, [ebp - 0x2c]
call fcn.00404e10
xor eax, eax
mov dword [ebp - 0x14], eax
call sub.ws2_32.dll_WSACreateEvent
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x541b42
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x541b3b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x21
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_WSAEventSelect
test eax, eax
je 0x541828
call fcn.00404810
jmp 0x541b42
push 0
push 0xea60
push 0
lea eax, [ebp - 0x24]
push eax
push 2
call sub.ws2_32.dll_WSAWaitForMultipleEvents
mov ebx, eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x541851
call fcn.00404810
jmp 0x541b42
mov eax, ebx
sub eax, 1
jb 0x541868
jne 0x541afe
call fcn.00404810
jmp 0x541b42
lea eax, [ebp - 0x68]
mov edx, 0x2c
call fcn.004083fc
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_WSAEnumNetworkEvents
test eax, eax
jne 0x541af7
mov eax, dword [ebp - 0x68]
or eax, 1
cmp eax, dword [ebp - 0x68]
je 0x5418a8
mov eax, dword [ebp - 0x68]
or eax, 0x20
cmp eax, dword [ebp - 0x68]
jne 0x541af0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x541ae9
cmp dword [ebp - 0x68], 1
jne 0x5419ee
mov al, byte [ebp - 0x26]
xor al, 1
test al, al
je 0x5418ec
push 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00540fcc
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x3c]
call fcn.004050f4
jmp 0x541900
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00540fcc
cmp dword [ebp - 0x3c], 0
je 0x5419e4
mov al, byte [ebp - 0x26]
xor al, 1
test al, al
je 0x5419aa
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
call fcn.0053f6a8
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.00405238
je 0x5419c5
cmp byte [ebp - 0x25], 0
jne 0x5419c5
mov byte [ebp - 0x26], 1
cmp dword [ebp - 0x2c], 0
je 0x54196f
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00421768
mov eax, dword [ebp - 0x2c]
call fcn.004050ec
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x38]
call fcn.004050ec
mov ecx, eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x14], 0
jne 0x5419c5
mov eax, dword [ebp - 0x2c]
call fcn.0053f50c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x5419c5
mov ecx, dword [ebp - 0x14]
mov dl, 0xa
mov eax, dword [ebp - 4]
call fcn.005414b8
jmp 0x5419c5
cmp dword [ebp - 0x3c], 0
je 0x5419c5
mov eax, dword [ebp - 0x3c]
call fcn.004050ec
mov ecx, eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [ebp - 0x38]
call fcn.00404e10
cmp byte [ebp - 0x26], 0
je 0x541b24
lea eax, [ebp - 0x3c]
call fcn.00404e10
jmp 0x541b24
call fcn.00404810
jmp 0x541b42
lea eax, [ebp - 0x3c]
call fcn.00404e10
push 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00540fcc
cmp dword [ebp - 0x34], 0
je 0x541a1d
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
call fcn.004050f4
jmp 0x5419f6
cmp dword [ebp - 0x3c], 0
je 0x541ad7
cmp byte [ebp - 0x26], 0
jne 0x541abc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
call fcn.0053f6a8
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.00405238
je 0x541a96
cmp byte [ebp - 0x25], 0
jne 0x541a96
mov byte [ebp - 0x26], 1
cmp dword [ebp - 0x2c], 0
je 0x541a81
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00421768
mov eax, dword [ebp - 0x2c]
call fcn.004050ec
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 0x38]
call fcn.004050ec
mov ecx, eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 0x14], 0
jne 0x541ad7
mov eax, dword [ebp - 0x2c]
call fcn.0053f50c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x541ad7
mov ecx, dword [ebp - 0x14]
mov dl, 0xa
mov eax, dword [ebp - 4]
call fcn.005414b8
jmp 0x541ad7
cmp dword [ebp - 0x3c], 0
je 0x541ad7
mov eax, dword [ebp - 0x3c]
call fcn.004050ec
mov ecx, eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x10]
push 1
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_shutdown_1
call fcn.00404810
jmp 0x541b42
call fcn.00404810
jmp 0x541b42
call fcn.00404810
jmp 0x541b42
call fcn.00404810
jmp 0x541b42
cmp ebx, 0xfffffffe
jne 0x541b0a
call fcn.00404810
jmp 0x541b42
call sub.ws2_32.dll_WSAGetLastError_1
mov ebx, eax
cmp ebx, 0xfffffffe
jne 0x541b1d
call fcn.00404810
jmp 0x541b42
call fcn.00404810
jmp 0x541b42
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5417e2
mov eax, dword [ebp - 0x24]
push eax
call sub.ws2_32.dll_WSACloseEvent
ret
lea eax, [ebp - 0x3c]
call fcn.00404e10
lea eax, [ebp - 0x38]
call fcn.00404e10
lea eax, [ebp - 0x2c]
call fcn.00404e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541c3b
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x541c06
xor ecx, ecx
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.005414b8
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x541b93
cmp eax, 0
jbe 0x541bae
jmp 0x541b95
jle 0x541bae
mov eax, dword [ebp - 0x1c]
push eax
push 1
push 0x5c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_SendMessageA
jmp 0x541bc3
push 0
push 0
push 0x5c9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x541bd6
cmp eax, 0
jbe 0x541bf1
jmp 0x541bd8
jle 0x541bf1
mov eax, dword [ebp - 0x18]
push eax
push 1
push 0x5c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_SendMessageA
jmp 0x541c06
push 0
push 0
push 0x5c7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 0x18]
call fcn.00403ec0
mov eax, dword [ebp - 0x1c]
call fcn.00403ec0
mov eax, dword [ebp - 0x30]
call fcn.0040a36c
test al, al
je 0x541c30
mov eax, dword [ebp - 0x30]
call fcn.004052ec
push eax
call sub.kernel32.dll_DeleteFileA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x541c6d
lea eax, [ebp - 0x6c]
call fcn.00404e10
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00404e34
lea eax, [ebp - 0xc]
call fcn.00404e10
ret