Function at 0x5228e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69f50e
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x94], ebx
push 4
lea ecx, [ebp - 0x9c]
call fcn.00407a60
push ebx
lea ecx, [ebp - 0x9c]
call fcn.0042ab70
mov dword [ebp - 4], 0
cmp byte [ebp + 8], 0
je 0x522949
cmp byte [ebx + 0x50], 0
jne 0x522949
mov bl, 1
jmp 0x52330e
lea ecx, [ebp - 0x8c]
call fcn.004058d0
mov byte [ebp - 4], 1
lea edi, [ebx + 8]
mov ecx, edi
mov dword [ebp - 0xa0], edi
call fcn.004ddfc0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test al, al
je 0x522b1a
mov ecx, edi
call fcn.004028e0
lea ecx, [ebp - 0x8c]
cmp ecx, eax
je 0x5229a7
mov ecx, edi
call fcn.004028e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x522998
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.00405b20
push str..old.backup
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x8c]
push eax
push str..old.backup
call fcn.00406160
push 0xb
lea ecx, [ebp - 0x8c]
call fcn.00405860
push eax
mov ecx, edi
call fcn.00405860
push eax
call esi
test eax, eax
jne 0x522b1a
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x8d], al
call fcn.004058d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.004f8010
movzx ecx, byte [ebp - 0x8d]
test al, al
mov eax, 1
cmovne ecx, eax
mov dword [ebp - 0x98], ecx
lea ecx, [ebp - 0x44]
call fcn.004058d0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x8c]
call fcn.004f8010
test al, al
jne 0x522a3e
cmp byte [ebp - 0x98], al
je 0x522a75
push 0xb
lea ecx, [ebp - 0x44]
call fcn.00405860
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405860
push eax
call esi
test eax, eax
je 0x522a75
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405870
jmp 0x522b1a
lea ecx, [ebp - 0x8c]
call fcn.004f7a10
cmp eax, 0xffffffff
je 0x522af7
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00414330
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004f7dd0
test al, al
je 0x522aeb
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x8c]
call fcn.004f7ab0
test al, al
je 0x522aeb
lea edx, [ebp - 0x8c]
mov ecx, edi
call fcn.004f7ab0
lea ecx, [ebp - 0x74]
test al, al
je 0x522ae0
call fcn.004f7bc0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00405870
jmp 0x522a58
lea edx, [ebp - 0x8c]
call fcn.004f7ab0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00405870
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00405870
lea ecx, [ebp - 0x8c]
call fcn.004142e0
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00431be0
call fcn.004e5070
mov byte [ebp - 4], 5
push ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.004e57f0
test al, al
jne 0x522c5d
lea ecx, [ebp - 0x8c]
call fcn.0040cdb0
test al, al
jne 0x522c56
push 0xb
mov ecx, edi
call fcn.00405860
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405860
push eax
call esi
test eax, eax
jne 0x522c4b
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.004058d0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x8c]
call fcn.004f8010
test al, al
movzx ebx, bl
mov eax, 1
lea ecx, [ebp - 0x2c]
cmovne ebx, eax
call fcn.004058d0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.004f8010
test al, al
jne 0x522bb8
test bl, bl
je 0x522bd2
push 0xb
lea ecx, [ebp - 0x2c]
call fcn.00405860
push eax
lea ecx, [ebp - 0x44]
call fcn.00405860
push eax
call esi
test eax, eax
jne 0x522c33
mov ecx, edi
call fcn.004f7a10
cmp eax, 0xffffffff
je 0x522c33
push edi
lea ecx, [ebp - 0x74]
call fcn.00414330
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x74]
call fcn.004f7dd0
test al, al
je 0x522c27
lea edx, [ebp - 0x74]
mov ecx, edi
call fcn.004f7ab0
test al, al
je 0x522c27
mov edx, edi
lea ecx, [ebp - 0x8c]
call fcn.004f7ab0
lea ecx, [ebp - 0x74]
test al, al
je 0x522c20
call fcn.004f7bc0
jmp 0x522c27
mov edx, edi
call fcn.004f7ab0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
call fcn.00405870
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
lea ecx, [ebp - 0x8c]
call fcn.004142e0
xor bl, bl
jmp 0x5232f3
push str.Version
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
push str.Header
call fcn.00405880
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x44]
push 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004e5430
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.NextTaskID
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
push str.Header
call fcn.00405880
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x44]
push dword [ebx + 4]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.Checksum
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
push str.Header
call fcn.00405880
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x44]
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004e5430
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.MaxConnections
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x44]
push dword [ebx + 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004e5430
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.TotalUploadLimit
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x44]
push dword [ebx + 0x2c]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.TotalDownloadLimit
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x44]
push dword [ebx + 0x30]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.P2pTimeout
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x44]
push dword [ebx + 0x24]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.MaxTaskCount
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x44]
push dword [ebx + 0x20]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.SeedTimeLimit
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x44]
push dword [ebx + 0x38]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
push str.SeedTimeRatioLimit
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2c]
push str.GlobalSettings
call fcn.00405880
mov byte [ebp - 4], 0x1c
movss xmm0, dword [ebx + 0x34]
mulss xmm0, dword [0x6e6abc]
call fcn.006357f0
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004e5430
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00405870
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x4c], xmm0
push 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.0051d4c0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
call fcn.00523990
mov eax, dword [ebp - 0x4c]
mov ebx, 1
mov esi, dword [eax]
cmp esi, eax
je 0x52306f
mov edi, eax
lea ecx, [ebp - 0x2c]
call fcn.004058d0
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x2c]
push ebx
push str.Task_u
push eax
call fcn.004d6990
mov eax, dword [ebp - 0x94]
inc ebx
add esp, 0xc
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x68], 0
lea ebx, [esi + 8]
mov dword [ebp - 0x64], 0
mov eax, dword [eax + 0x40]
mov edx, eax
mov dword [ebp - 0x60], 0
mov ecx, dword [edx + 4]
cmp byte [ecx + 0xd], 0
jne 0x52301c
mov ebx, dword [ebx]
cmp dword [ecx + 0x10], ebx
jae 0x52300f
mov ecx, dword [ecx + 8]
jmp 0x523013
mov edx, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x523005
lea ebx, [esi + 8]
cmp edx, eax
je 0x52303b
mov ecx, dword [ebx]
cmp ecx, dword [edx + 0x10]
jb 0x52303b
cmp edx, eax
je 0x52303b
movq xmm0, qword [edx + 0x14]
mov eax, dword [edx + 0x1c]
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00523340
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov esi, dword [esi]
mov ebx, dword [ebp - 0x98]
cmp esi, edi
jne 0x522fb2
mov edi, dword [ebp - 0xa0]
push str.TaskCount
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x2c]
push str.Header
call fcn.00405880
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x44]
push dword [ebp - 0x48]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004e5430
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x44]
call fcn.00405870
lea ecx, [ebp - 0x5c]
call fcn.004e5a30
lea ecx, [ebp - 0x8c]
test al, al
je 0x5230f5
mov eax, dword [ebp - 0x94]
mov byte [eax + 0x50], 0
call fcn.0040cdb0
test al, al
jne 0x52320d
lea ecx, [ebp - 0x8c]
call fcn.004f7bc0
jmp 0x52320d
call fcn.0040cdb0
test al, al
jne 0x52320d
push 0xb
mov ecx, edi
call fcn.00405860
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405860
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call esi
test eax, eax
jne 0x523202
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.004058d0
mov byte [ebp - 4], 0x23
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x8c]
call fcn.004f8010
test al, al
movzx ebx, bl
mov eax, 1
lea ecx, [ebp - 0x2c]
cmovne ebx, eax
call fcn.004058d0
mov byte [ebp - 4], 0x24
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.004f8010
test al, al
jne 0x52316f
test bl, bl
je 0x523189
push 0xb
lea ecx, [ebp - 0x2c]
call fcn.00405860
push eax
lea ecx, [ebp - 0x44]
call fcn.00405860
push eax
call esi
test eax, eax
jne 0x5231ea
mov ecx, edi
call fcn.004f7a10
cmp eax, 0xffffffff
je 0x5231ea
push edi
lea ecx, [ebp - 0x74]
call fcn.00414330
mov byte [ebp - 4], 0x25
lea ecx, [ebp - 0x74]
call fcn.004f7dd0
test al, al
je 0x5231de
lea edx, [ebp - 0x74]
mov ecx, edi
call fcn.004f7ab0
test al, al
je 0x5231de
mov edx, edi
lea ecx, [ebp - 0x8c]
call fcn.004f7ab0
lea ecx, [ebp - 0x74]
test al, al
je 0x5231d7
call fcn.004f7bc0
jmp 0x5231de
mov edx, edi
call fcn.004f7ab0
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x74]
call fcn.00405870
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x2c]
call fcn.00405870
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x44]
call fcn.00405870
lea ecx, [ebp - 0x8c]
call fcn.004142e0
push 4
lea ecx, [ebp - 0x94]
call fcn.00407a60
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x94]
call fcn.0042ab70
mov byte [ebp - 4], 0x26
mov edi, dword [ebp - 0x5c]
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.004e6170
mov eax, dword [edi]
lea ecx, [edi + 0xc]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
call fcn.004142e0
mov byte [edi + 8], 0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x94]
call fcn.0042aba0
mov byte [ebp - 0x8d], 1
mov byte [ebp - 4], 0x27
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], 0
mov ebx, dword [eax]
mov dword [eax], eax
mov dword [eax + 4], eax
cmp ebx, eax
je 0x5232db
nop dword [eax]
mov edi, dword [ebx]
lea esi, [ebx + 8]
mov dword [ebp - 0xa0], esi
mov byte [ebp - 4], 0x29
lea ecx, [esi + 0xf8]
call fcn.00405870
mov byte [ebp - 4], 0x28
lea ecx, [esi + 0xe0]
call fcn.00405870
mov byte [ebp - 4], 0x27
mov ecx, esi
call fcn.00462800
push 0x128
push ebx
call fcn.00634ee5
mov eax, dword [ebp - 0x4c]
add esp, 8
mov ebx, edi
cmp edi, eax
jne 0x523290
mov byte [ebp - 4], 5
push 0x128
push eax
call fcn.00634ee5
mov bl, byte [ebp - 0x8d]
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004e51d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00405870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.0042aba0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 4