Function at 0x545398
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.00405328
xor eax, eax
push ebp
push 0x54590a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x5458df
mov byte [ebp - 0x26], 0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00545174
cmp dword [ebp - 0x30], 0
je 0x5458df
mov eax, dword [ebp - 0xc]
call fcn.00405138
mov ebx, eax
xor ecx, ecx
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.0054515c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00544f68
cmp ebx, eax
jne 0x5458df
xor ecx, ecx
mov dl, 9
mov eax, dword [ebp - 4]
call fcn.0054515c
push 0xffff
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x41f94c]
call fcn.00424ce0
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x41fa3c]
call fcn.00403edc
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x5458d5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
call fcn.00404e5c
lea eax, [ebp - 0x34]
call fcn.00404e5c
lea eax, [ebp - 0x2c]
call fcn.00404e5c
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 0x5457e6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x5457df
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 0x5454cc
call fcn.0040485c
jmp 0x5457e6
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 0x5454f5
call fcn.0040485c
jmp 0x5457e6
mov eax, ebx
sub eax, 1
jb 0x54550c
jne 0x5457a2
call fcn.0040485c
jmp 0x5457e6
lea eax, [ebp - 0x68]
mov edx, 0x2c
call fcn.00408604
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 0x54579b
mov eax, dword [ebp - 0x68]
or eax, 1
cmp eax, dword [ebp - 0x68]
je 0x54554c
mov eax, dword [ebp - 0x68]
or eax, 0x20
cmp eax, dword [ebp - 0x68]
jne 0x545794
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x54578d
cmp dword [ebp - 0x68], 1
jne 0x545692
mov al, byte [ebp - 0x26]
xor al, 1
test al, al
je 0x545590
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.00544c70
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x3c]
call fcn.00405140
jmp 0x5455a4
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.00544c70
cmp dword [ebp - 0x3c], 0
je 0x545688
mov al, byte [ebp - 0x26]
xor al, 1
test al, al
je 0x54564e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
call fcn.00543394
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.00405284
je 0x545669
cmp byte [ebp - 0x25], 0
jne 0x545669
mov byte [ebp - 0x26], 1
cmp dword [ebp - 0x2c], 0
je 0x545613
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0042484c
mov eax, dword [ebp - 0x2c]
call fcn.00405138
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.00405138
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 0x545669
mov eax, dword [ebp - 0x2c]
call fcn.00543238
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x545669
mov ecx, dword [ebp - 0x14]
mov dl, 0xa
mov eax, dword [ebp - 4]
call fcn.0054515c
jmp 0x545669
cmp dword [ebp - 0x3c], 0
je 0x545669
mov eax, dword [ebp - 0x3c]
call fcn.00405138
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.00404e5c
cmp byte [ebp - 0x26], 0
je 0x5457c8
lea eax, [ebp - 0x3c]
call fcn.00404e5c
jmp 0x5457c8
call fcn.0040485c
jmp 0x5457e6
lea eax, [ebp - 0x3c]
call fcn.00404e5c
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.00544c70
cmp dword [ebp - 0x34], 0
je 0x5456c1
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x34]
call fcn.00405140
jmp 0x54569a
cmp dword [ebp - 0x3c], 0
je 0x54577b
cmp byte [ebp - 0x26], 0
jne 0x545760
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x25]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x3c]
call fcn.00543394
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
call fcn.00405284
je 0x54573a
cmp byte [ebp - 0x25], 0
jne 0x54573a
mov byte [ebp - 0x26], 1
cmp dword [ebp - 0x2c], 0
je 0x545725
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0042484c
mov eax, dword [ebp - 0x2c]
call fcn.00405138
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.00405138
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 0x54577b
mov eax, dword [ebp - 0x2c]
call fcn.00543238
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x54577b
mov ecx, dword [ebp - 0x14]
mov dl, 0xa
mov eax, dword [ebp - 4]
call fcn.0054515c
jmp 0x54577b
cmp dword [ebp - 0x3c], 0
je 0x54577b
mov eax, dword [ebp - 0x3c]
call fcn.00405138
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.0040485c
jmp 0x5457e6
call fcn.0040485c
jmp 0x5457e6
call fcn.0040485c
jmp 0x5457e6
call fcn.0040485c
jmp 0x5457e6
cmp ebx, 0xfffffffe
jne 0x5457ae
call fcn.0040485c
jmp 0x5457e6
call sub.ws2_32.dll_WSAGetLastError_1
mov ebx, eax
cmp ebx, 0xfffffffe
jne 0x5457c1
call fcn.0040485c
jmp 0x5457e6
call fcn.0040485c
jmp 0x5457e6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545486
mov eax, dword [ebp - 0x24]
push eax
call sub.ws2_32.dll_WSACloseEvent
ret
lea eax, [ebp - 0x3c]
call fcn.00404e5c
lea eax, [ebp - 0x38]
call fcn.00404e5c
lea eax, [ebp - 0x2c]
call fcn.00404e5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5458df
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
jne 0x5458aa
xor ecx, ecx
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.0054515c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x545837
cmp eax, 0
jbe 0x545852
jmp 0x545839
jle 0x545852
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 0x545867
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 0x54587a
cmp eax, 0
jbe 0x545895
jmp 0x54587c
jle 0x545895
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 0x5458aa
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.00403f0c
mov eax, dword [ebp - 0x1c]
call fcn.00403f0c
mov eax, dword [ebp - 0x30]
call fcn.0040c5c8
test al, al
je 0x5458d4
mov eax, dword [ebp - 0x30]
call fcn.00405338
push eax
call sub.kernel32.dll_DeleteFileA
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x545911
lea eax, [ebp - 0x6c]
call fcn.00404e5c
lea eax, [ebp - 0x3c]
mov edx, 5
call fcn.00404e80
lea eax, [ebp - 0xc]
call fcn.00404e5c
ret