Function at 0x40d06c
Capabilities:
Move file

Disassembly:
push 0x150
mov eax, 0x4398c9
call fcn.00425448
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, ebx
mov eax, esi
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], edi
cmp dword [esi + 0x14], 7
jbe 0x40d098
mov eax, dword [esi]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40d0ac
xor al, al
jmp 0x40d44c
push eax
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
call fcn.00401c1d
mov edi, dword [ebp - 0x158]
mov eax, esi
sub edi, dword [ebp - 0x15c]
sar edi, 1
cmp dword [esi + 0x14], 7
mov dword [ebp - 4], ebx
jbe 0x40d0e5
mov eax, dword [esi]
push edi
push dword [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40d43f
cmp eax, edi
jae 0x40d43f
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x40d10d
mov eax, dword [esi]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40d43f
push eax
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x14c], ebx
mov dword [ebp - 0x148], ebx
call fcn.00401c1d
mov edi, dword [ebp - 0x14c]
mov eax, esi
sub edi, dword [ebp - 0x150]
sar edi, 1
cmp dword [esi + 0x14], 7
mov byte [ebp - 4], 1
jbe 0x40d158
mov eax, dword [esi]
push edi
push dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40d434
cmp eax, edi
jae 0x40d434
push dword [ebp - 0x15c]
lea ecx, [ebp - 0xd0]
call fcn.004014a6
push dword [ebp - 0x150]
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.004014a6
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0041175b
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041175b
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 5
je 0x40d216
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040d454
test eax, eax
je 0x40d216
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.0041175b
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
xor edi, edi
push ecx
inc edi
push eax
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], edi
call fcn.0040d454
mov byte [ebp - 0x139], bl
test eax, eax
je 0x40d21d
mov byte [ebp - 0x139], 1
mov eax, dword [ebp - 0x144]
mov dword [ebp - 4], 5
test al, 1
je 0x40d23f
and eax, 0xfffffffe
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x144], eax
call fcn.00401ac8
cmp byte [ebp - 0x139], 0
jne 0x40d40b
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov edi, dword [ebp - 0x144]
mov byte [ebp - 4], 7
mov dword [ebp - 0x140], ebx
test eax, eax
jne 0x40d34a
push esi
lea ecx, [ebp - 0x28]
call fcn.00402d63
push dword [ebp - 0x140]
lea eax, [ebp - 0x70]
push eax
call fcn.00403949
or edi, 4
push str.rtmp
lea ecx, [ebp - 0xe8]
mov byte [ebp - 4], 8
call fcn.004014a6
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
push ecx
push eax
push dword [ebp - 0x140]
lea ecx, [ebp - 0xa0]
call fcn.0040a45d
or edi, 2
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004118e1
lea ecx, [ebp - 0xa0]
call fcn.00401ac8
lea ecx, [ebp - 0xe8]
call fcn.00401ac8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00401ac8
lea eax, [ebp - 0x28]
push eax
call fcn.0040e3c3
test al, al
je 0x40d322
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
jbe 0x40d31d
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x140]
add eax, 0x7b
mov dword [ebp - 0x140], eax
cmp eax, 0x2710
jae 0x40d340
mov eax, dword [ebp - 0x18]
jmp 0x40d277
cmp dword [ebp - 0x18], 0
je 0x40d403
push esi
lea ecx, [ebp - 0x40]
call fcn.004071f8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004118e1
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x40]
jbe 0x40d373
mov ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x40d37f
mov eax, dword [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40d3fb
lea ecx, [ebp - 0x138]
call fcn.0040d476
push esi
mov byte [ebp - 4], 0xc
call fcn.0040e3c3
test al, al
jne 0x40d3b4
push 0x12
push esi
lea ecx, [ebp - 0x138]
call fcn.0040d5aa
mov bl, al
cmp dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
jbe 0x40d3c0
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
jbe 0x40d3cc
mov eax, dword [ebp - 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x40d3ee
lea ecx, [ebp - 0x138]
call fcn.0040d560
lea ecx, [ebp - 0x138]
call fcn.0040d6f2
lea ecx, [ebp - 0x138]
mov bl, 1
call fcn.0040d4d6
lea ecx, [ebp - 0x40]
call fcn.00401ac8
lea ecx, [ebp - 0x28]
call fcn.00401ac8
lea ecx, [ebp - 0x58]
call fcn.00401ac8
lea ecx, [ebp - 0x88]
call fcn.00401ac8
lea ecx, [ebp - 0xb8]
call fcn.00401ac8
lea ecx, [ebp - 0xd0]
call fcn.00401ac8
lea ecx, [ebp - 0x150]
call fcn.00401aa4
lea ecx, [ebp - 0x15c]
call fcn.00401aa4
mov al, bl
call fcn.004253f7
ret 4