Function at 0x40b550
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5187fd
mov eax, dword fs:[0]
push eax
mov eax, 0x2654c
call fcn.00497510
mov eax, dword [0x55d3e4]
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 dword [ebp - 0x26550], ebx
push str.e3791737732
push dword [ebx + 0x54]
call fcn.0040bf90
add esp, 8
mov dword [ebp - 0x5c], 7
mov esi, eax
mov dword [ebp - 0x60], 0
xor eax, eax
lea ecx, [ebp - 0x70]
mov word [ebp - 0x70], ax
push eax
push 0x5207d8
call fcn.00407fd0
mov dword [ebp - 4], 0
test esi, esi
je 0x40b5f9
cmp word [esi], 0
jne 0x40b5d3
xor ecx, ecx
jmp 0x40b5ef
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b5e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00407fd0
cmp dword [ebp - 0x60], 0
jne 0x40b606
xor esi, esi
jmp 0x40bbef
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00422ea2
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push eax
mov word [ebp - 0x58], ax
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x44], 7
push eax
mov dword [ebp - 0x48], 0
call fcn.00407eb0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea esi, [ebx + 0x24]
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040a960
add esp, 0xc
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b691
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004227c2
add esp, 4
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0042135e
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0042135e
mov ecx, eax
add esp, 0x10
cmp dword [ecx + 0x14], 0x10
jb 0x40b6bf
mov ecx, dword [ecx]
lea edx, [ebp - 0x718]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40b6c5
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x40b6f1
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.004080d0
cmp dword [ebp - 0x8c], 0x10
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x518]
cmovae ecx, dword [ebp - 0xa0]
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x40b710
lea ecx, [ebp - 0x26548]
call fcn.00421d88
sub esp, 0x300
mov byte [ebp - 4], 5
mov edi, esp
lea esi, [ebp - 0x718]
mov ecx, 0xc0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x26548]
call fcn.00421e13
lea ecx, [ebp - 0x26548]
call fcn.004226d8
push 0x300
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004c9210
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
add esp, 0xc
movups xmmword [ebp - 0x110], xmm0
lea ecx, [ebp - 0x26548]
call fcn.00422437
test eax, eax
je 0x40b80c
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x26548]
call fcn.004221b9
cvttsd2si eax, qword [ebp - 0x110]
mov esi, dword [ebx + 4]
xor ecx, ecx
xor edi, edi
movsd xmm0, qword [ebp - 0x108]
mov dword [ebp - 0x2654c], eax
mov eax, dword [ebx + 8]
mov ebx, eax
sub ebx, esi
movsd qword [ebp - 0x26558], xmm0
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x40b806
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40b7fe
push dword [ebp - 0x2654c]
mov edx, dword [ecx]
cvttsd2si eax, xmm0
push eax
call dword [edx + 4]
movsd xmm0, qword [ebp - 0x26558]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40b7e0
mov ebx, dword [ebp - 0x26550]
lea ecx, [ebp - 0x26548]
call fcn.00422443
test eax, eax
je 0x40b782
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x26548]
call fcn.004221b9
movups xmm1, xmmword [ebp - 0x110]
mov esi, dword [ebx + 4]
xor ecx, ecx
movsd xmm0, qword [ebp - 0x108]
xor edi, edi
cvttsd2si eax, xmm1
movsd qword [ebp - 0x26558], xmm0
mov dword [ebp - 0x2654c], eax
mov eax, dword [ebx + 8]
mov ebx, eax
sub ebx, esi
add ebx, 3
shr ebx, 2
cmp esi, eax
cmova ebx, ecx
test ebx, ebx
je 0x40b89d
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40b88e
push dword [ebp - 0x2654c]
mov edx, dword [ecx]
cvttsd2si eax, xmm0
push eax
call dword [edx + 4]
movsd xmm0, qword [ebp - 0x26558]
inc edi
add esi, 4
cmp edi, ebx
jne 0x40b870
movups xmm1, xmmword [ebp - 0x110]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x40bb1c
ucomisd xmm0, qword [0x521008]
lahf
test ah, 0x44
jnp 0x40bb1c
push 0x5207d8
lea ecx, [ebp - 0x28]
call fcn.00409cb0
push 0x5207d8
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.00409cb0
push 0x5207d8
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 7
call fcn.00409cb0
mov esi, dword [ebp - 0x26550]
push str.cceba9efafe
mov byte [ebp - 4], 8
push dword [esi + 0x54]
call fcn.0040bf90
add esp, 8
test eax, eax
je 0x40b91e
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040b1f0
jmp 0x40b98c
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x2654c]
mov dword [ebp - 0x2654c], 0x2e
push eax
lea ecx, [ebp - 0x58]
call fcn.0040cb70
push eax
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040cc30
push str..exe
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 9
push eax
call fcn.0040a900
add esp, 0xc
lea ecx, [ebp - 0xb8]
push eax
call fcn.0040b170
lea ecx, [ebp - 0x88]
call fcn.00413c30
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 8
call fcn.00413c30
push str.c7c4236a31f
push dword [esi + 0x54]
call fcn.0040bf90
add esp, 8
test eax, eax
je 0x40b9ac
push eax
lea ecx, [ebp - 0xe8]
call fcn.0040b1f0
push str.e05e27c0a50
push dword [esi + 0x54]
call fcn.0040bf90
push str.c1cb196b5c2
push dword [esi + 0x54]
call fcn.0040bf90
lea eax, [ebp - 0xb8]
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0040a960
add esp, 0x1c
lea ecx, [ebp - 0x28]
push eax
call fcn.0040b170
lea ecx, [ebp - 0x100]
call fcn.00413c30
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.00422c62
add esp, 8
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bae1
lea eax, [ebp - 0xe8]
push 0x5207d8
push eax
call fcn.0040a8b0
add esp, 8
test al, al
je 0x40ba5f
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004233a5
add esp, 4
jmp 0x40bae1
push 0x5207d8
lea ecx, [ebp - 0x88]
call fcn.00409cb0
push 0x520ff8
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xa
call fcn.0040b1f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040a590
push 0x520ffc
lea ecx, [ebp - 0x88]
call fcn.0040b2a0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040a590
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.004233a5
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.00413c30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 5
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xe8]
call fcn.00413c30
lea ecx, [ebp - 0xb8]
call fcn.00413c30
lea ecx, [ebp - 0x28]
call fcn.00413c30
mov esi, 1
jmp 0x40bb1e
xor esi, esi
lea ecx, [ebp - 0x26548]
call fcn.00414330
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40bb47
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004080d0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
cmp eax, 8
jb 0x40bb77
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40bba0
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x40bbd2
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0xbc], 7
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
mov ecx, dword [ebp - 0x5c]
cmp ecx, 8
jb 0x40bc04
inc ecx
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
call fcn.0047f630
mov eax, esi
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.004974f6
mov esp, ebp
pop ebp
ret