Function at 0x42ad4b
Capabilities:
Delete file

Disassembly:
sub esp, 0x24
test dword [ebx + 0x1690], 0xfffffff8
push ebp
push esi
push edi
je 0x42ad76
mov eax, dword [ebx + 0x186c]
test eax, eax
je 0x42ad76
push dword [ebx + 0x188c]
push 0
push 0
call eax
add esp, 0xc
cmp dword [esp + 0x34], 0
jne 0x42add4
push 0x53bf1c
call fcn.00413df9
test dword [ebx + 0x1690], 0xfffffff8
pop ecx
jne 0x42ada5
lea esi, [ebx + 0x1698]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [ebx + 0x1640]
push ebp
call edi
lea eax, [ebx + 0x610]
push eax
mov dword [ebx + 0x630], 2
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42ae44
push 0x53a5ac
call fcn.00413df9
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
pop ecx
lea ebp, [ebx + 0x1640]
push ebp
call edi
lea eax, [ebx + 0x610]
push eax
mov dword [ebx + 0x630], 4
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test dword [ebx + 0x1690], 0xfffffff8
jne 0x42ae44
lea esi, [ebx + 0x1698]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
lea eax, [ebx + 0x1674]
cmp dword [eax + 0x18], 8
jb 0x42ae3a
mov eax, dword [eax + 4]
jmp 0x42ae3d
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebx + 0x1694]
mov eax, dword [esi]
mov dword [esp + 0x10], eax
test eax, eax
je 0x42ae67
push eax
call fcn.0042b362
push dword [esp + 0x10]
call fcn.0049a490
and dword [esi], 0
pop ecx
push ebp
call edi
lea esi, [ebx + 0x600]
cmp word [esi], 0
jne 0x42ae9b
or dword [ebx + 0x94], 0xffffffff
push ebp
call edi
push 0x10
lea eax, [ebx + 0x610]
push eax
push esi
call fcn.0049d7c0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x42aec1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebx + 0x610]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00418117
add esp, 0x20
mov dword [ebx + 0x94], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x34]
lea eax, [ebx + 0x10]
push eax
push ebx
mov dword [ebx + 0x84], esi
call fcn.0041d6f3
mov eax, dword [ebx + 0xf4]
xor edi, edi
cmp eax, edi
je 0x42aefb
push esi
push dword [ebx + 0xf8]
push 0xe415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call fcn.0041cb16
mov eax, dword [ebx + 0x1720]
push edi
push edi
push 0x12
push dword [eax]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push edi
push edi
push edi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
cmp dword [esp + 0x18], 0xe422
jne 0x42af3a
mov eax, dword [esp + 0x20]
push dword [eax]
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x1720]
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x42af13
push str.ServerThread
call fcn.00413df9
pop ecx
pop edi
pop esi
mov byte [ebx + 0x1760], 1
pop ebp
add esp, 0x24
ret 4