Function at 0x440370
Capabilities:
Check if file exists
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x59dae9
mov eax, dword fs:[0]
push eax
sub esp, 0x890
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x888], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x8a4]
mov dword fs:[0], eax
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0x8ac], ebx
mov eax, dword [esp + 0x8b4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44066d
mov ecx, 0x5c
mov word [esp + 0x47c], cx
mov dword [esp + 0x480], ebx
mov dword [esp + 0x484], ebx
mov byte [esp + 0x8ac], 1
mov edx, dword [esp + 0x8b4]
push edx
push 0x5de6a8
lea eax, [esp + 0x69c]
push 0x208
push eax
call fcn.00407c70
add esp, 0x10
lea eax, [esp + 0x694]
lea esi, [esp + 0x24]
call fcn.0043e9b0
cmp eax, ebx
je 0x440613
lea esp, [esp]
cmp dword [esp + 0x484], ebx
je 0x44046c
mov ecx, dword [esp + 0x24]
shr ecx, 4
and ecx, 1
je 0x44046c
cmp word [esp + 0x50], 0x2e
jne 0x44046c
mov ax, word [esp + 0x52]
cmp ax, bx
je 0x4405e4
cmp ax, 0x2e
jne 0x44046c
cmp word [esp + 0x54], bx
je 0x4405e4
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x28]
call fcn.0043e7c0
mov eax, dword [eax]
push 0x103
push eax
lea eax, [esp + 0x494]
push 0x104
push eax
call fcn.004f6a8c
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4404b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x484], ebx
je 0x440559
mov eax, dword [esp + 0x24]
shr eax, 4
and eax, 1
cmp eax, ebx
je 0x440559
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x48c]
mov byte [esp + 0x8ac], 2
mov edx, dword [esp + 0x8b4]
push ecx
push edx
push 0x5d7f74
lea edi, [esp + 0x24]
call fcn.00407710
mov esi, dword [esp + 0x24]
add esp, 8
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov ecx, ebp
mov dword [edi], eax
call fcn.00440370
mov byte [esp + 0x8ac], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4405e4
mov ecx, dword [esi]
push esi
jmp 0x4405dd
lea eax, [esp + 0x48c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x440563
sub eax, edx
sar eax, 1
je 0x4405e4
mov edx, dword [0x6285c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x6285c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x48c]
mov byte [esp + 0x8ac], 3
mov edx, dword [esp + 0x8b4]
push ecx
push edx
push 0x5d7f74
lea edi, [esp + 0x24]
call fcn.00407710
add esp, 0xc
push ebp
mov esi, edi
call fcn.00440170
mov byte [esp + 0x8ac], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4405e4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x480]
cmp eax, ebx
je 0x44061a
cmp dword [esp + 0x484], ebx
je 0x44061a
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [esp + 0x484], eax
cmp eax, ebx
jne 0x440430
mov eax, dword [esp + 0x480]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x484], ebx
cmp eax, ebx
je 0x44063a
cmp eax, 0xffffffff
je 0x44063a
push eax
call esi
mov dword [esp + 0x480], ebx
mov edx, dword [esp + 0x8b4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov eax, dword [esp + 0x480]
mov dword [esp + 0x484], ebx
jne 0x44069f
cmp eax, ebx
je 0x44066d
cmp eax, 0xffffffff
je 0x44066d
push eax
call esi
mov dword [esp + 0x480], ebx
mov dword [esp + 0x8ac], 0xffffffff
mov eax, dword [esp + 0x8b4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44069b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4406e5
cmp eax, ebx
je 0x4406b2
cmp eax, 0xffffffff
je 0x4406b2
push eax
call esi
mov dword [esp + 0x480], ebx
mov dword [esp + 0x8ac], 0xffffffff
mov eax, dword [esp + 0x8b4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4406e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x8a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x888]
xor ecx, esp
call fcn.004f673f
add esp, 0x89c
ret 4