Function at 0x40eec0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
mov eax, dword [0x447004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
mov dword [ebp - 0x15c], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x118]
push esi
mov esi, dword [ebx + 0x44]
push edi
mov dword [ebp - 0x118], eax
lea edi, [ebx + 0x3c]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x128], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x12c], eax
lea eax, [esi + 0xa]
mov dword [ebp - 0x10c], 0
movlpd qword [ebp - 0x168], xmm0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0x447a78
mov dword [ebp - 0x11c], 0x4478b4
mov dword [ebp - 0x124], 0x100
mov dword [ebp - 0x120], 0x100
movlpd qword [ebp - 0x148], xmm0
movlpd qword [ebp - 0x150], xmm0
cmp eax, dword [edi + 4]
jbe 0x40ef90
mov eax, dword [ebx]
push edi
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [esi + 0xa]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x40efc5
test esi, esi
je 0x40efa7
mov ecx, dword [edi]
mov al, byte [ecx + esi - 1]
cmp al, 0x2f
je 0x40efa7
cmp al, 0x5c
je 0x40efa7
mov byte [ecx + esi], 0x2f
inc esi
mov eax, dword [edi]
mov dword [esi + eax], 0x64616564
mov dword [esi + eax + 4], 0x706d742e
mov eax, dword [edi]
mov byte [eax + esi + 8], 0
lea eax, [esi + 8]
mov dword [edi + 8], eax
mov esi, dword [edi + 8]
xor eax, eax
mov ecx, dword [edi]
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x134], ecx
cmp dword [ebx + 0x44], eax
jbe 0x40eff0
nop dword [eax]
cmp byte [eax + ecx], 0x2f
jne 0x40efea
mov byte [eax + ecx], 0x5c
inc eax
cmp eax, dword [ebx + 0x44]
jb 0x40efe0
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x110]
mov edx, dword [ebp - 0x110]
mov dword [ebx + 0x44], eax
lea eax, [ebp - 0x148]
push eax
lea eax, [esi + 1]
add ecx, dword [edx]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x40f128
push dword [ebp - 0x160]
mov esi, dword [ebp - 0x148]
push dword [ebp - 0x134]
push esi
call fcn.00426ea0
mov eax, dword [ebp - 0x160]
add esp, 0xc
mov byte [eax + esi], 0
mov esi, dword [edi + 8]
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x134], eax
lea eax, [esi + 0xe]
cmp eax, dword [edi + 4]
jbe 0x40f076
mov eax, dword [ebx]
push edi
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [esi + 0xe]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x40f0b2
test esi, esi
je 0x40f08d
mov ecx, dword [edi]
mov al, byte [ecx + esi - 1]
cmp al, 0x2f
je 0x40f08d
cmp al, 0x5c
je 0x40f08d
mov byte [ecx + esi], 0x2f
inc esi
mov ecx, dword [edi]
movq xmm0, qword [str.dead.tmp.jrn]
movq qword [ecx + esi], xmm0
mov eax, dword [0x4439dc]
mov dword [ecx + esi + 8], eax
mov eax, dword [edi]
mov byte [eax + esi + 0xc], 0
lea eax, [esi + 0xc]
mov dword [edi + 8], eax
mov esi, dword [edi + 8]
xor eax, eax
mov ecx, dword [edi]
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x12c], ecx
cmp dword [ebx + 0x44], eax
jbe 0x40f0e0
nop word [eax + eax]
cmp byte [eax + ecx], 0x2f
jne 0x40f0da
mov byte [eax + ecx], 0x5c
inc eax
cmp eax, dword [ebx + 0x44]
jb 0x40f0d0
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x110]
mov edx, dword [ebp - 0x110]
mov dword [ebx + 0x44], eax
lea eax, [ebp - 0x150]
push eax
lea eax, [esi + 1]
add ecx, dword [edx]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
jne 0x40f17c
mov edx, dword [ebp - 0x164]
test edx, edx
je 0x40f128
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
add esp, 4
mov edi, 0x1d
mov esi, 0x4479a8
lea ecx, [ebp - 0x128]
call fcn.0041dfc0
mov eax, dword [ebp - 0x170]
xor ebx, ebx
test edi, edi
sete bl
test eax, eax
jne 0x40f53b
test esi, esi
je 0x40f55c
mov edx, dword [esi]
mov ecx, dword [edx]
add ecx, esi
push ecx
mov ecx, dword [edx + 4]
call ecx
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425576
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x160]
mov esi, dword [ebp - 0x150]
push dword [ebp - 0x12c]
push esi
call fcn.00426ea0
mov eax, dword [ebp - 0x160]
add esp, 0xc
mov byte [eax + esi], 0
push dword [ebp - 0x148]
call fcn.0042aec4
add esp, 4
push dword [ebp - 0x150]
call fcn.0042aec4
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x168]
add esp, 4
mov ecx, ebx
push eax
push dword [ebp - 0x16c]
push dword [ebp - 0x15c]
call fcn.0040ece0
add esp, 0xc
mov dword [ebp - 0x15c], eax
test eax, eax
je 0x40f271
mov ecx, dword [ebx + 8]
mov edi, dword [ebp - 0x148]
mov dword [ebp - 0x134], 2
mov eax, dword [ecx + 0x1b4]
mov edx, dword [ecx + 0x1b0]
mov esi, dword [ecx + 0x1c0]
mov dword [ebp - 0x13c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x140], edx
mov eax, dword [eax + 0x41c]
mov dword [ebp - 0x138], eax
call fcn.00405cd0
mov ecx, dword [ebp - 0x15c]
call fcn.00405cd0
push 1
mov ecx, ebx
call fcn.0040e1d0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0
lea eax, [ebp - 0x140]
mov ecx, ebx
push esi
push eax
call fcn.0040e1d0
mov edx, eax
mov ecx, ebx
call fcn.0040dd80
add esp, 0xc
mov dword [ebx + 8], eax
lea edi, [ebx + 0x3c]
push dword [ebp - 0x148]
call fcn.0042aec4
add esp, 4
push dword [ebp - 0x150]
call fcn.0042aec4
add esp, 4
lea ecx, [ebp - 0x128]
call fcn.0041dfc0
mov esi, dword [edi + 8]
xorps xmm0, xmm0
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x15c], eax
movlpd qword [ebp - 0x138], xmm0
lea eax, [esi + 0xa]
movlpd qword [ebp - 0x130], xmm0
cmp eax, dword [edi + 4]
jbe 0x40f2d9
mov eax, dword [ebx]
push edi
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [esi + 0xa]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x40f30e
test esi, esi
je 0x40f2f0
mov ecx, dword [edi]
mov al, byte [ecx + esi - 1]
cmp al, 0x2f
je 0x40f2f0
cmp al, 0x5c
je 0x40f2f0
mov byte [ecx + esi], 0x2f
inc esi
mov eax, dword [edi]
mov dword [esi + eax], 0x6576696c
mov dword [esi + eax + 4], 0x706d742e
mov eax, dword [edi]
mov byte [eax + esi + 8], 0
lea eax, [esi + 8]
mov dword [edi + 8], eax
mov esi, dword [edi + 8]
xor eax, eax
mov ecx, dword [edi]
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x16c], ecx
cmp dword [ebx + 0x44], eax
jbe 0x40f336
cmp byte [eax + ecx], 0x2f
jne 0x40f330
mov byte [eax + ecx], 0x5c
inc eax
cmp eax, dword [ebx + 0x44]
jb 0x40f326
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x110]
mov edx, dword [ebp - 0x110]
mov dword [ebx + 0x44], eax
lea eax, [ebp - 0x138]
push eax
lea eax, [esi + 1]
add ecx, dword [edx]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x40f10f
push dword [ebp - 0x160]
mov esi, dword [ebp - 0x138]
push dword [ebp - 0x16c]
push esi
call fcn.00426ea0
mov eax, dword [ebp - 0x160]
add esp, 0xc
mov byte [eax + esi], 0
mov esi, dword [edi + 8]
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x15c], eax
lea eax, [esi + 0xe]
cmp eax, dword [edi + 4]
jbe 0x40f3bc
mov eax, dword [ebx]
push edi
mov edx, dword [eax]
mov ecx, dword [edx]
add ecx, eax
lea eax, [esi + 0xe]
push eax
mov eax, dword [edx + 4]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x40f3f8
test esi, esi
je 0x40f3d3
mov ecx, dword [edi]
mov al, byte [ecx + esi - 1]
cmp al, 0x2f
je 0x40f3d3
cmp al, 0x5c
je 0x40f3d3
mov byte [ecx + esi], 0x2f
inc esi
mov ecx, dword [edi]
movq xmm0, qword [str.live.tmp.jrn]
movq qword [ecx + esi], xmm0
mov eax, dword [0x4439ec]
mov dword [ecx + esi + 8], eax
mov eax, dword [edi]
mov byte [eax + esi + 0xc], 0
lea eax, [esi + 0xc]
mov dword [edi + 8], eax
mov edx, dword [edi + 8]
xor eax, eax
mov ecx, dword [edi]
cmp dword [ebx + 0x44], eax
jbe 0x40f414
cmp byte [eax + ecx], 0x2f
jne 0x40f40e
mov byte [eax + ecx], 0x5c
inc eax
cmp eax, dword [ebx + 0x44]
jb 0x40f404
mov eax, dword [ebp - 0x15c]
mov dword [ebx + 0x44], eax
lea eax, [ebp - 0x168]
push eax
push edx
push ecx
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x130]
call fcn.0041d0f0
add esp, 0xc
test eax, eax
je 0x40f52a
push dword [ebp - 0x138]
call fcn.0042aec4
add esp, 4
push dword [ebp - 0x130]
call fcn.0042aec4
mov edx, dword [ebp - 0x138]
lea eax, [ebp - 0x168]
add esp, 4
mov ecx, ebx
push eax
call fcn.0040eaf0
add esp, 4
mov dword [ebp - 0x15c], eax
test eax, eax
je 0x40f503
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 0x138]
mov dword [ebp - 0x14c], 2
mov eax, dword [ecx]
mov esi, dword [ecx + 0x1b4]
mov edx, dword [ecx + 0x1b0]
mov dword [ebp - 0x154], esi
mov eax, dword [eax + 0x41c]
mov esi, dword [ecx + 0x1c0]
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x150], eax
call fcn.00405cd0
mov ecx, dword [ebp - 0x15c]
call fcn.00405cd0
push 1
mov ecx, ebx
call fcn.0040e120
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0
lea eax, [ebp - 0x158]
mov ecx, ebx
push esi
push eax
call fcn.0040e120
mov edx, eax
mov ecx, ebx
call fcn.0040dbb0
add esp, 0xc
mov dword [ebx + 4], eax
push dword [ebp - 0x138]
call fcn.0042aec4
add esp, 4
push dword [ebp - 0x130]
call fcn.0042aec4
add esp, 4
lea ecx, [ebp - 0x128]
call fcn.0041dfc0
mov esi, dword [ebp - 0x164]
mov edi, dword [ebp - 0x168]
jmp 0x40f132
mov edx, dword [eax + 4]
test edx, edx
je 0x40f557
mov ecx, dword [edx]
mov eax, dword [ecx]
add eax, edx
push eax
mov eax, dword [ecx + 4]
call eax
mov eax, dword [ebp - 0x170]
add esp, 4
mov dword [eax + 4], esi
mov dword [eax], edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425576
mov esp, ebp
pop ebp
ret