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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51d91a
mov eax, dword fs:[0]
push eax
mov eax, 0x26550
call fcn.0049bfd0
mov eax, dword [0x55d184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x26550], edi
push str.aa7007930513
push dword [edi + 0x54]
call fcn.0040dcf0
add esp, 8
mov dword [ebp - 0x48], 0
mov esi, eax
mov dword [ebp - 0x44], 7
xor eax, eax
lea ecx, [ebp - 0x58]
mov word [ebp - 0x58], ax
push eax
push 0x525840
call fcn.00407300
mov dword [ebp - 4], 0
test esi, esi
je 0x40d169
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d150
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.00407300
cmp dword [ebp - 0x48], 0
jne 0x40d176
xor esi, esi
jmp 0x40d7d7
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.0042cd85
add esp, 8
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040b9c0
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
push eax
lea esi, [edi + 0x24]
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0040c3a0
add esp, 0xc
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d1f0
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0042c0bf
add esp, 4
lea eax, [ebp - 0x88]
push esi
push eax
call fcn.0042627c
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0042627c
mov ecx, eax
add esp, 0x10
cmp dword [ecx + 0x14], 0x10
jb 0x40d21e
mov ecx, dword [ecx]
lea edx, [ebp - 0x718]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d226
mov edx, dword [ebp - 0xa4]
cmp edx, 0x10
jb 0x40d26d
mov ecx, dword [ebp - 0xb8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d263
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d82a
push edx
push ecx
call fcn.0049bb5c
add esp, 8
cmp dword [ebp - 0x74], 0x10
lea ecx, [ebp - 0x88]
lea edx, [ebp - 0x518]
cmovae ecx, dword [ebp - 0x88]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x40d286
lea ecx, [ebp - 0x26548]
call fcn.0042b512
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.0042b59d
lea ecx, [ebp - 0x26548]
call fcn.0042be60
push 0x300
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.004cbbe0
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
add esp, 0xc
movups xmmword [ebp - 0x110], xmm0
nop word [eax + eax]
lea ecx, [ebp - 0x26548]
call fcn.0042bbc1
test eax, eax
je 0x40d39c
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x26548]
call fcn.0042b931
cvttsd2si eax, qword [ebp - 0x110]
xor edx, edx
xor edi, edi
movsd xmm0, qword [ebp - 0x108]
mov dword [ebp - 0x26554], eax
mov eax, dword [ebp - 0x26550]
movsd qword [ebp - 0x2655c], xmm0
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov ecx, eax
sub ecx, esi
add ecx, 3
shr ecx, 2
cmp esi, eax
cmova ecx, edx
mov dword [ebp - 0x2654c], ecx
test ecx, ecx
je 0x40d39c
mov eax, ecx
nop
mov ecx, dword [esi]
test ecx, ecx
je 0x40d394
push dword [ebp - 0x26554]
mov edx, dword [ecx]
cvttsd2si eax, xmm0
push eax
call dword [edx + 4]
movsd xmm0, qword [ebp - 0x2655c]
mov eax, dword [ebp - 0x2654c]
inc edi
add esi, 4
cmp edi, eax
jne 0x40d370
lea ecx, [ebp - 0x26548]
call fcn.0042bbcd
test eax, eax
je 0x40d300
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x26548]
call fcn.0042b931
movups xmm1, xmmword [ebp - 0x110]
xor edx, edx
xor edi, edi
movsd xmm0, qword [ebp - 0x108]
cvttsd2si eax, xmm1
movsd qword [ebp - 0x2655c], xmm0
mov dword [ebp - 0x26554], eax
mov eax, dword [ebp - 0x26550]
mov esi, dword [eax + 4]
mov eax, dword [eax + 8]
mov ecx, eax
sub ecx, esi
add ecx, 3
shr ecx, 2
cmp esi, eax
cmova ecx, edx
mov dword [ebp - 0x2654c], ecx
test ecx, ecx
je 0x40d443
mov eax, ecx
nop dword [eax]
mov ecx, dword [esi]
test ecx, ecx
je 0x40d434
push dword [ebp - 0x26554]
mov edx, dword [ecx]
cvttsd2si eax, xmm0
push eax
call dword [edx + 4]
movsd xmm0, qword [ebp - 0x2655c]
mov eax, dword [ebp - 0x2654c]
inc edi
add esi, 4
cmp edi, eax
jne 0x40d410
movups xmm1, xmmword [ebp - 0x110]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x40d760
ucomisd xmm0, qword [0x526200]
lahf
test ah, 0x44
jnp 0x40d760
push 0x525840
lea ecx, [ebp - 0x28]
call fcn.0040ba50
push 0x525840
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 6
call fcn.0040ba50
push 0x525840
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 7
call fcn.0040ba50
mov edi, dword [ebp - 0x26550]
push str.c104c1d871ca
mov byte [ebp - 4], 8
push dword [edi + 0x54]
call fcn.0040dcf0
mov edx, eax
add esp, 8
test edx, edx
je 0x40d4e1
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d4c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xe8]
call fcn.00407300
jmp 0x40d5cb
mov edi, dword [ebp - 0x8c]
lea edx, [ebp - 0xa0]
mov esi, dword [ebp - 0x90]
cmp edi, 8
cmovae edx, dword [ebp - 0xa0]
test esi, esi
je 0x40d529
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea ecx, [edx + ecx*2]
je 0x40d523
cmp ecx, edx
je 0x40d529
sub ecx, 2
cmp word [ecx], 0x2e
jne 0x40d516
sub ecx, edx
sar ecx, 1
jmp 0x40d52c
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x30], 0
cmp esi, ecx
mov word [ebp - 0x40], ax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x2c], 7
cmovb ecx, esi
cmp edi, 8
push ecx
cmovae eax, dword [ebp - 0xa0]
lea ecx, [ebp - 0x40]
push eax
call fcn.00407300
push 4
push 0x526194
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.0040b840
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb8], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xe8]
movq qword [ebp - 0xa8], xmm0
call fcn.0040ccb0
lea ecx, [ebp - 0xb8]
call fcn.00408700
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.00408700
mov edi, dword [ebp - 0x26550]
push str.f79f10b16c44
push dword [edi + 0x54]
call fcn.0040dcf0
mov edx, eax
add esp, 8
test edx, edx
je 0x40d602
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d5e6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xd0]
call fcn.00407300
push str.eee6aa2d71e2
push dword [edi + 0x54]
call fcn.0040dcf0
push str.a25a96be2af5
push dword [edi + 0x54]
call fcn.0040dcf0
lea eax, [ebp - 0xe8]
push eax
lea eax, [edi + 0x24]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0040c3a0
add esp, 0x1c
lea ecx, [ebp - 0x28]
push eax
call fcn.0040ccb0
lea ecx, [ebp - 0xb8]
call fcn.00408700
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x5c], 8
push ecx
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.0042c782
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 0x40d725
mov esi, dword [ebp - 0xc0]
test esi, esi
jne 0x40d6a7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0042d28e
add esp, 4
jmp 0x40d725
push 0x525840
lea ecx, [ebp - 0x40]
call fcn.0040ba50
push 0x5261f4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
call fcn.0040ccf0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040b840
push 2
push 0x5261f8
lea ecx, [ebp - 0x40]
call fcn.0040b840
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
push esi
cmovae eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040b840
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0042d28e
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00408700
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 - 0xd0]
call fcn.00408700
lea ecx, [ebp - 0xe8]
call fcn.00408700
lea ecx, [ebp - 0x28]
call fcn.00408700
mov esi, 1
jmp 0x40d762
xor esi, esi
lea ecx, [ebp - 0x26548]
call fcn.004071b0
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x40d7a4
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d79a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d82f
push edx
push ecx
call fcn.0049bb5c
add esp, 8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.00408700
lea ecx, [ebp - 0xa0]
call fcn.00408700
lea ecx, [ebp - 0x100]
call fcn.00408700
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40d80d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d803
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d834
push edx
push ecx
call fcn.0049bb5c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049be04
mov esp, ebp
pop ebp
ret
call fcn.004cf6b9
call fcn.004cf6b9
call fcn.004cf6b9
int3