Function at 0x404920
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x544da7
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x5ec938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0x228]
mov dword [ebp - 0x42c], eax
mov eax, dword [ecx + 0x410]
mov edi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], ebx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x424], edx
cmp eax, 0x11
jne 0x404dd4
xor eax, eax
cmp dword [esi + 0x22c], eax
jne 0x404c8a
lea ecx, [ebp - 0x458]
mov dword [esi + 0x20c], eax
mov dword [esi + 0x214], eax
call fcn.00438f15
mov ecx, dword [ebp - 0x42c]
push 0x5c
push ecx
mov dword [ebp - 4], 0
call fcn.0052ceac
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x424]
add esp, 8
push edx
add eax, 2
push eax
mov eax, dword [ebp - 0x428]
push eax
push ecx
mov ecx, edi
call fcn.004123b0
mov edi, eax
test edi, edi
je 0x404c78
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404a11
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x424], eax
mov byte [ebp - 4], 1
call fcn.00436219
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404a41
push 0x80004005
call fcn.00401ed0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x42c], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov byte [ebp - 4], 2
mov word [ebp - 0x420], cx
call fcn.0052c850
add esp, 0xc
cmp dword [edi + 0x20c], 0
je 0x404b11
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.0052c850
mov edx, dword [ebx]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0052cd4a
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.0052ceda
lea eax, [ebp + eax*2 - 0x218]
lea edx, [ebp - 0x218]
add esp, 0x20
cmp eax, edx
je 0x404aee
cmp word [eax], 0x5c
je 0x404aeb
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x404ad6
jmp 0x404aee
add eax, 2
push eax
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.0052cd4a
lea eax, [ebp - 0x420]
add esp, 0xc
mov dword [ebp - 0x428], eax
jmp 0x404b1d
lea ecx, [edi + 0x620]
mov dword [ebp - 0x428], ecx
mov edx, dword [ebp - 0x428]
push edx
lea eax, [edi + 0x418]
push eax
lea eax, [ebp - 0x424]
push str._s_s
push eax
call fcn.00403bf0
add esp, 0x10
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00402930
mov ebx, dword [ebp - 0x424]
push 0
push ebx
lea ecx, [ebp - 0x458]
call fcn.00438fbc
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x434], eax
call fcn.00438a9f
cmp dword [ebp - 0x434], 0
je case.default.0x404b9e
mov edx, dword [edi + 0xc38]
mov dword [esi + 0x218], edx
mov eax, dword [edi + 0xc38]
cmp eax, 3
ja case.default.0x404b9e
jmp dword [eax*4 + 0x404fa0]
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x404c56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x404be6
cmp eax, 0x4c8
jne case.default.0x404b9e
push ebx
lea eax, [esi + 4]
push 0x104
push eax
call fcn.0052cd4a
mov ecx, dword [ebp - 0x428]
add esp, 0xc
push ecx
mov ecx, dword [ebp - 0x430]
lea eax, [edi + 0x418]
push eax
lea edx, [ebp - 0x434]
push edx
call fcn.00417020
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.00402930
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 2
call fcn.00402480
mov ecx, dword [esi + 0x228]
mov eax, 1
mov dword [esi + 0x20c], eax
mov edx, dword [ecx + 0x410]
mov dword [edx + 0x14], eax
jmp 0x404cef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x404b9e
lea ecx, [ebp - 0x42c]
call fcn.00402480
lea ecx, [ebp - 0x424]
call fcn.00402480
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
call fcn.00438f47
mov eax, 2
jmp 0x404f82
push ebx
lea eax, [esi + 4]
push 0x104
push eax
call fcn.0052cd4a
mov ecx, dword [ebp - 0x428]
add esp, 0xc
push ecx
mov ecx, dword [ebp - 0x430]
lea eax, [edi + 0x418]
push eax
lea edx, [ebp - 0x438]
push edx
call fcn.00417020
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.00402930
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.00402480
mov dword [esi + 0x214], 1
mov ebx, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x430]
push 0
lea eax, [edi + 0x418]
push eax
call fcn.00416c10
cmp word [edi + 0xa30], 0
lea eax, [edi + 0xa30]
je 0x404d28
push eax
lea eax, [edi + 0x828]
push eax
mov ecx, esi
call fcn.004045d0
mov edx, dword [ebp - 0x43c]
mov ecx, dword [edi + 0xc40]
push ebx
add edx, 0x12
push 0x104
push edx
mov dword [esi], ecx
call fcn.0052cd4a
mov ecx, dword [ebp - 0x42c]
mov eax, dword [edi + 0xc4c]
add esp, 0xc
push ecx
mov ecx, esi
mov dword [esi + 0x210], eax
call fcn.00404470
mov edi, dword [edi + 0xc50]
test edi, edi
je 0x404d72
mov dword [esi + 0x21c], edi
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404d98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404db8
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
call fcn.00438f47
mov eax, 1
jmp 0x404f82
cmp eax, 0x13
jne 0x404f80
cmp dword [esi + 0x214], 0
je 0x404f32
mov eax, dword [esi + 0x21c]
lea edi, [esi + 4]
test eax, eax
je 0x404e45
movzx ecx, byte [eax + 0x168]
push ecx
lea edx, [eax + 0x164]
push edx
mov edx, dword [ebx]
lea ecx, [eax + 0xe4]
push ecx
add eax, 0x64
push eax
push edx
push edi
call fcn.00403630
add esp, 0x18
test eax, eax
jns 0x404e32
mov eax, 3
mov dword [esi + 0x21c], 0
jmp 0x404e54
neg eax
sbb eax, eax
add eax, 2
mov dword [esi + 0x21c], 0
jmp 0x404e54
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x430]
push eax
push edi
call fcn.00417700
mov ecx, dword [esi + 0x218]
cmp ecx, 2
jne 0x404e64
cmp eax, 3
je 0x404e7a
cmp ecx, 3
jne 0x404f1c
cmp eax, 2
je 0x404e7a
cmp eax, ecx
jne 0x404f1c
push 0x20
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x404ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x404eb7
cmp eax, 0x4c8
jne 0x404f79
mov ecx, dword [esi + 0x228]
mov edx, dword [ecx + 0x410]
mov ecx, dword [ebp - 0x430]
mov dword [edx + 0x14], 1
mov eax, dword [ebx]
push edi
push eax
call fcn.0041b8d0
mov eax, dword [esi]
cmp eax, 1
je 0x404f79
push eax
push edi
mov ecx, esi
call fcn.00404650
jmp 0x404f79
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebx]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [esi]
cmp eax, 1
je 0x404f79
push eax
push edi
mov ecx, esi
call fcn.00404650
jmp 0x404f79
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
push eax
push edi
mov ecx, esi
call fcn.00404650
jmp 0x404f79
cmp dword [esi + 0x20c], 0
je 0x404f57
mov ecx, dword [ebx]
lea eax, [esi + 4]
push eax
push ecx
mov ecx, edi
call fcn.0041b8d0
mov eax, dword [esi]
cmp eax, 1
je 0x404f69
push eax
lea eax, [esi + 4]
push eax
jmp 0x404f62
mov eax, dword [esi]
cmp eax, 1
je 0x404f69
mov edx, dword [ebx]
push eax
push edx
mov ecx, esi
call fcn.00404650
mov eax, dword [esi + 0x210]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, esi
call fcn.00404500
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c2ec
mov esp, ebp
pop ebp
ret 0xc