Function at 0x4190d8
Capabilities:
Delete file

Disassembly:
sub esp, 0x24
cmp dword [ebx + 0x1690], 3
push ebp
push esi
push edi
jne 0x419100
mov eax, dword [ebx + 0x1850]
test eax, eax
je 0x419100
push dword [ebx + 0x1870]
push 0
push 0
call eax
add esp, 0xc
cmp dword [esp + 0x34], 0
jne 0x419165
push 0x459e4c
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
cmp dword [ebx + 0x1690], 3
je 0x419136
lea esi, [ebx + 0x1698]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebp, [ebx + 0x1640]
push ebp
call esi
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 0x4191dc
push 0x458af4
push 8
push dword [0x468674]
call fcn.00429300
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0xc
lea ebp, [ebx + 0x1640]
push ebp
call esi
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]
cmp dword [ebx + 0x1690], 3
je 0x4191dc
lea edi, [ebx + 0x1698]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
lea eax, [ebx + 0x1674]
cmp dword [eax + 0x18], 8
jb 0x4191d2
mov eax, dword [eax + 4]
jmp 0x4191d5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edi, [ebx + 0x1694]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4191ff
push eax
call fcn.0041073f
push dword [esp + 0x10]
call fcn.0043a3dd
and dword [edi], 0
pop ecx
push ebp
call esi
lea edi, [ebx + 0x600]
cmp word [edi], 0
jne 0x41922b
or dword [ebx + 0x94], 0xffffffff
push ebp
call esi
lea esi, [ebx + 0x610]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebp
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x419253
mov esi, edi
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.00402633
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.00409ad4
mov eax, dword [ebx + 0xf4]
xor edi, edi
cmp eax, edi
je 0x41928d
push esi
push dword [ebx + 0xf8]
push 0x2401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call fcn.00408ed9
mov eax, dword [ebx + 0x1704]
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], 0x900
jne 0x4192cc
mov eax, dword [esp + 0x20]
push dword [eax]
mov dword [eax + 4], edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x1704]
push edi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4192a5
push str.ServerThread
push 8
push dword [0x468674]
call fcn.00429300
add esp, 0xc
pop edi
pop esi
mov byte [ebx + 0x1744], 1
pop ebp
add esp, 0x24
ret 4