Function at 0x408ba0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545e18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ad6a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
call fcn.0040b6c7
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x408bee
push 0x80004005
call fcn.00401200
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov byte [ebp - 4], 2
call fcn.00401220
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00403e60
add esp, 4
or ebx, 0xffffffff
cmp eax, 1
jne 0x408c99
mov edi, eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push str._s_d
push eax
call fcn.00402d70
mov esi, dword [ebp - 0x10]
add esp, 0x10
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x408c96
mov ebx, dword [esi - 0x10]
cmp dword [esi - 0xc], eax
lea edx, [esi - 0x10]
je 0x408c8d
cmp dword [edx + 0xc], eax
lea ecx, [edx + 0xc]
jge 0x408c6c
cmp dword [esi - 8], eax
jl 0x408cc8
mov dword [esi - 0xc], eax
mov word [esi], ax
jmp 0x408c8d
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x408c80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
inc edi
cmp edi, 0x3e8
jl 0x408c26
or ebx, 0xffffffff
mov edi, dword [ebp + 0xc]
push ecx
mov ecx, dword [edi - 0x10]
add edi, 0xfffffff0
mov eax, dword [ecx]
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x18], esp
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x408cd2
cmp ecx, dword [edi]
jne 0x408cd2
mov eax, 1
lock xadd dword [edx], eax
jmp 0x408d15
push 0x80070057
call fcn.00401200
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x408ce9
call fcn.00401640
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0052b8a5
mov edi, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov edi, dword [ebp + 8]
push ecx
mov ecx, dword [edi - 0x10]
add edi, 0xfffffff0
mov eax, dword [ecx]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], esp
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x408d4d
cmp ecx, dword [edi]
jne 0x408d4d
mov eax, 1
lock xadd dword [edx], eax
jmp 0x408d90
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x408d64
call fcn.00401640
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0052b8a5
mov edi, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00408f30
push ecx
mov ecx, dword [esi - 0x10]
lea edi, [esi - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x20], esp
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
mov ecx, eax
jl 0x408dd2
cmp ecx, dword [edi]
jne 0x408dd2
mov eax, edi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x408e15
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x408de9
call fcn.00401640
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [edi + 4]
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x10]
push eax
lea eax, [ecx*2 + 2]
push eax
lea eax, [edx + 0x10]
push eax
call fcn.0052b8a5
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x20]
add eax, 0x10
mov dword [ecx], eax
call fcn.00403e60
add esp, 4
cmp eax, 1
jne 0x408eb5
cmp dword [ebp - 0x1c], 0
jge 0x408e9c
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x408eb5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push 0x55814c
push eax
call fcn.00402410
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
mov dword [eax + 0x120], 1
lea ecx, [eax + 0x124]
mov eax, dword [ebp - 0x18]
push dword [eax - 0xc]
push eax
call fcn.00402670
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408eb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x408eb5
push ecx
mov esi, esp
push edi
call fcn.00401220
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00403cf0
add esp, 4
mov byte [ebp - 4], 1
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408ecf
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408eef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x408f10
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8