Function at 0x408c90
Capabilities:
Check if file exists
Create thread
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d768
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x485370]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4881b0]
sub eax, dword [0x4881ac]
mov edi, dword [ebp + 8]
sar eax, 5
cmp eax, dword [edi + 0x7a8]
jbe 0x408f00
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea esi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0040f330
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x7a8]
mov edx, dword [0x4881ac]
shl ecx, 5
mov ecx, dword [ecx + edx + 0xc]
mov edx, dword [eax]
push ecx
push edx
push str._s_s
lea edi, [ebp - 0x10]
call fcn.00404aa0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x10]
cmp esi, ebx
jne 0x408d50
xor eax, eax
jmp 0x408d64
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408d55
sub eax, edx
sar eax, 1
push esi
push 0x488184
mov ebx, eax
call fcn.00404f80
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x408da9
mov ecx, dword [edi + 4]
push 4
push 0x47a5b8
push str.S_MR_
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x408da4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408da9
call fcn.00408f20
mov ecx, dword [edi + 0x3b8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0x479a54
call eax
push 0x38
call fcn.004507d8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x408df9
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebx + 0x28], eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebx + 0x2c], eax
jmp 0x408dfb
xor ebx, ebx
mov ecx, dword [edi + 0x3a8]
mov dword [ebx], ecx
mov edx, dword [edi + 0x3a4]
mov dword [ebx + 4], edx
mov eax, dword [edi + 0x3b0]
mov dword [ebx + 8], eax
mov ecx, dword [edi + 0x3ac]
mov dword [ebx + 0xc], ecx
mov edx, dword [edi + 0x3b4]
mov dword [ebx + 0x10], edx
mov eax, dword [edi + 0x39c]
mov dword [ebx + 0x14], eax
mov ecx, dword [edi + 4]
lea esi, [ebp - 0x14]
mov dword [ebx + 0x30], ecx
call fcn.0040f330
lea edi, [ebx + 0x28]
mov byte [ebp - 4], 2
call fcn.00406f90
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408e6d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x7a8]
mov dword [ebx + 0x34], ecx
mov edx, dword [esi + 0x7a8]
mov eax, dword [0x4881ac]
shl edx, 5
lea eax, [edx + eax + 0x18]
lea edi, [ebx + 0x2c]
call fcn.00406f90
mov ecx, dword [esi + 0x3a0]
call fcn.00426c33
push 0
push 0
push ebx
push 0x406aa0
push 0
push 0
mov dword [esi + 0x79c], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x36c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1b4]
push 2
call eax
mov ecx, dword [esi + 0x7a8]
push ecx
call fcn.0040c250
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4