Function at 0x5764c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
je 0x5764e5
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
je 0x5764f3
mov dword [0x63a8d8], 0x21
xor ecx, ecx
je 0x57651a
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor eax, eax
je 0x576534
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx]
push eax
push str.IFSTOP_m_iStatus_is___d_
call fcn.00575290
add esp, 8
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x20]
cmp dword [edx], 2
je 0x576555
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 3
je 0x576555
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x20]
cmp dword [eax], 4
jne 0x576569
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x576740
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x64]
call fcn.00576f90
movzx edx, al
test edx, edx
jne 0x5765e1
xor eax, eax
je 0x576594
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x5765a2
mov dword [0x63a8d8], 0x24
xor edx, edx
je 0x5765c9
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x5765da
push str.SendWork_is_failed__
call fcn.00575290
add esp, 4
xor al, al
jmp 0x576740
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x5765fd
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
je 0x57660b
mov dword [0x63a8d8], 0x27
xor eax, eax
je 0x576632
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor edx, edx
je 0x57664c
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
push edx
push str.IFSTOP_m_iStatus_is___d_
call fcn.00575290
add esp, 8
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x20]
cmp dword [ecx], 2
je 0x57666d
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x20]
cmp dword [eax], 3
je 0x57666d
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x20]
cmp dword [edx], 4
jne 0x576681
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x576740
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x64]
call fcn.00577060
movzx ecx, al
test ecx, ecx
jne 0x57673e
mov edx, dword [ebp - 0x64]
mov eax, dword [edx + 0x20]
cmp dword [eax], 3
je 0x5766e5
mov ecx, dword [ebp - 0x64]
mov edx, dword [ecx + 0x20]
cmp dword [edx], 4
je 0x5766e5
mov eax, dword [ebp - 0x64]
add eax, 0x84
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x14], 0x10
jb 0x5766d5
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov dword [ebp - 0x68], eax
jmp 0x5766db
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
je 0x5766f4
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
je 0x576702
mov dword [0x63a8d8], 0x2e
xor edx, edx
je 0x576729
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor ecx, ecx
je 0x57673a
push str.ReceiveWork_is_failed__
call fcn.00575290
add esp, 4
xor al, al
jmp 0x576740
mov al, 1
mov esp, ebp
pop ebp
ret