Function at 0x404860
Capabilities:
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a9f3
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x47a2f4]
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 ebx, ecx
mov edx, dword [ebx + 0x28]
mov eax, 0x3e0f83e1
sub edx, dword [ebx + 0x24]
imul edx
mov dword [ebp - 0xc0], 0
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404c0e
xor edi, edi
mov dword [ebp - 0xbc], edi
nop
lea eax, [ebp - 0xb8]
push eax
call fcn.004041f0
mov esi, eax
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x24]
add ecx, edi
call fcn.0040de91
push eax
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.00408c60
add esp, 4
mov edi, eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.004041f0
mov esi, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebx + 0x24]
add ecx, dword [ebp - 0xbc]
call fcn.0040de91
push eax
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00408c60
add esp, 4
push str..bak
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.00408c60
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x40493c
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x404944
mov eax, dword [eax]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404988
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40497e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4049da
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4049d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x404a2c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a22
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x404a7d
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404a73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp edx, 8
jb 0x404ad8
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404ace
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
lea eax, [ebp - 0xa0]
push eax
call fcn.004041f0
mov esi, eax
mov edi, dword [ebp - 0xbc]
mov dword [ebp - 4], 4
mov ecx, dword [ebx + 0x24]
add ecx, edi
call fcn.0040de91
push eax
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00408c60
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x404b16
mov eax, dword [eax]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x74]
cmp edx, 8
jb 0x404b5f
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404b55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
cmp edx, 8
jb 0x404bb9
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404baf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404c2a
push edx
push ecx
call fcn.0043feb1
add esp, 8
mov ecx, dword [ebx + 0x28]
xor eax, eax
sub ecx, dword [ebx + 0x24]
add edi, 0x84
mov esi, dword [ebp - 0xc0]
mov word [ebp - 0xa0], ax
inc esi
mov eax, 0x3e0f83e1
mov dword [ebp - 0x90], 0
imul ecx
mov dword [ebp - 0x8c], 7
sar edx, 5
mov eax, edx
mov dword [ebp - 0xc0], esi
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xbc], edi
cmp esi, eax
jb 0x4048c0
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.0043fe70
mov esp, ebp
pop ebp
ret
call fcn.00444fd9
int3