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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54abe7
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x60c9c8]
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 0x405984
xor eax, eax
cmp dword [esi + 0x22c], eax
jne 0x40583a
lea ecx, [ebp - 0x458]
mov dword [esi + 0x20c], eax
mov dword [esi + 0x214], eax
call fcn.0043f9a5
mov ecx, dword [ebp - 0x42c]
push 0x5c
push ecx
mov dword [ebp - 4], 0
call fcn.0053309c
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.00414d70
mov edi, eax
test edi, edi
je 0x405828
call fcn.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4055c1
push 0x80004005
call fcn.00402a80
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.0043e2f8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4055f1
push 0x80004005
call fcn.00402a80
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.00531fb0
add esp, 0xc
cmp dword [edi + 0x20c], 0
je 0x4056c1
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00531fb0
mov edx, dword [ebx]
push edx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00532f33
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.005330ca
lea eax, [ebp + eax*2 - 0x218]
lea edx, [ebp - 0x218]
add esp, 0x20
cmp eax, edx
je 0x40569e
cmp word [eax], 0x5c
je 0x40569b
sub eax, 2
lea ecx, [ebp - 0x218]
cmp eax, ecx
jne 0x405686
jmp 0x40569e
add eax, 2
push eax
lea edx, [ebp - 0x420]
push 0x104
push edx
call fcn.00532f33
lea eax, [ebp - 0x420]
add esp, 0xc
mov dword [ebp - 0x428], eax
jmp 0x4056cd
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 0x55d250
push eax
call fcn.004047a0
add esp, 0x10
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.004034d0
mov ebx, dword [ebp - 0x424]
push 0
push ebx
lea ecx, [ebp - 0x458]
call fcn.0043fa4c
lea ecx, [ebp - 0x458]
mov dword [ebp - 0x434], eax
call fcn.0043f52f
cmp dword [ebp - 0x434], 0
je case.default.0x40574e
mov edx, dword [edi + 0xc38]
mov dword [esi + 0x218], edx
mov eax, dword [edi + 0xc38]
cmp eax, 3
ja case.default.0x40574e
jmp dword [eax*4 + 0x405b50]
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 0x405806
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x405796
cmp eax, 0x4c8
jne case.default.0x40574e
push ebx
lea eax, [esi + 4]
push 0x104
push eax
call fcn.00532f33
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.00419bc0
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 3
call fcn.004034d0
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 2
call fcn.00402e70
mov ecx, dword [esi + 0x228]
mov eax, 1
mov dword [esi + 0x20c], eax
mov edx, dword [ecx + 0x410]
mov dword [edx + 0x14], eax
jmp 0x40589f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x40574e
lea ecx, [ebp - 0x42c]
call fcn.00402e70
lea ecx, [ebp - 0x424]
call fcn.00402e70
lea ecx, [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
call fcn.0043f9d7
mov eax, 2
jmp 0x405b32
push ebx
lea eax, [esi + 4]
push 0x104
push eax
call fcn.00532f33
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.00419bc0
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 4
call fcn.004034d0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 2
call fcn.00402e70
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.004197a0
cmp word [edi + 0xa30], 0
lea eax, [edi + 0xa30]
je 0x4058d8
push eax
lea eax, [edi + 0x828]
push eax
mov ecx, esi
call fcn.00405180
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.00532f33
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.00405020
mov edi, dword [edi + 0xc50]
test edi, edi
je 0x405922
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 0x405948
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 0x405968
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.0043f9d7
mov eax, 1
jmp 0x405b32
cmp eax, 0x13
jne 0x405b30
cmp dword [esi + 0x214], 0
je 0x405ae2
mov eax, dword [esi + 0x21c]
lea edi, [esi + 4]
test eax, eax
je 0x4059f5
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.004041d0
add esp, 0x18
test eax, eax
jns 0x4059e2
mov eax, 3
mov dword [esi + 0x21c], 0
jmp 0x405a04
neg eax
sbb eax, eax
add eax, 2
mov dword [esi + 0x21c], 0
jmp 0x405a04
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x430]
push eax
push edi
call fcn.0041a740
mov ecx, dword [esi + 0x218]
cmp ecx, 2
jne 0x405a14
cmp eax, 3
je 0x405a2a
cmp ecx, 3
jne 0x405acc
cmp eax, 2
je 0x405a2a
cmp eax, ecx
jne 0x405acc
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 0x405aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x405a67
cmp eax, 0x4c8
jne 0x405b29
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.0041ead0
mov eax, dword [esi]
cmp eax, 1
je 0x405b29
push eax
push edi
mov ecx, esi
call fcn.00405200
jmp 0x405b29
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 0x405b29
push eax
push edi
mov ecx, esi
call fcn.00405200
jmp 0x405b29
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.00405200
jmp 0x405b29
cmp dword [esi + 0x20c], 0
je 0x405b07
mov ecx, dword [ebx]
lea eax, [esi + 4]
push eax
push ecx
mov ecx, edi
call fcn.0041ead0
mov eax, dword [esi]
cmp eax, 1
je 0x405b19
push eax
lea eax, [esi + 4]
push eax
jmp 0x405b12
mov eax, dword [esi]
cmp eax, 1
je 0x405b19
mov edx, dword [ebx]
push eax
push edx
mov ecx, esi
call fcn.00405200
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.004050b0
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.00531f97
mov esp, ebp
pop ebp
ret 0xc