Function at 0x10015a40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cd15
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x10047810]
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, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x170], ecx
mov eax, ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ecx
cmp dword [ebx + 0x14], 8
jb 0x10015a8f
mov eax, dword [ebx]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x10015aa5
xor al, al
jmp 0x10016237
lea ecx, [ebp - 0x161]
push ecx
push eax
lea ecx, [ebp - 0x184]
call fcn.100158f0
mov esi, dword [ebp - 0x180]
mov eax, ebx
mov ecx, dword [ebp - 0x184]
sub esi, ecx
sar esi, 1
cmp dword [ebx + 0x14], 8
mov dword [ebp - 4], 0
jb 0x10015ad9
mov eax, dword [ebx]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x10016228
cmp eax, esi
jae 0x10016228
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10015afc
mov eax, dword [ebx]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x10016228
lea ecx, [ebp - 0x161]
push ecx
push eax
lea ecx, [ebp - 0x190]
call fcn.100158f0
mov esi, dword [ebp - 0x18c]
mov eax, ebx
mov edi, dword [ebp - 0x190]
sub esi, edi
sar esi, 1
cmp dword [ebx + 0x14], 8
mov byte [ebp - 4], 1
jb 0x10015b40
mov eax, dword [ebx]
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x10016219
cmp eax, esi
jae 0x10016219
push dword [ebp - 0x184]
lea ecx, [ebp - 0x114]
call fcn.10009a40
push edi
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 2
call fcn.10009a40
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.1001c890
lea eax, [ebp - 0xfc]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.1001c890
add esp, 0x10
cmp dword [ebp - 0xbc], 0
mov byte [ebp - 4], 5
je 0x10015c0f
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.10016260
add esp, 8
test eax, eax
je 0x10015c0f
lea eax, [ebp - 0x9c]
push ebx
push eax
call fcn.1001c890
mov ecx, 1
mov byte [ebp - 4], 6
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x170], ecx
lea ecx, [ebp - 0xcc]
push ecx
push eax
call fcn.10016260
add esp, 0x10
mov byte [ebp - 0x161], 0
test eax, eax
je 0x10015c16
mov byte [ebp - 0x161], 1
mov eax, dword [ebp - 0x168]
mov dword [ebp - 4], 5
test al, 1
je 0x10015c3b
and eax, 0xfffffffe
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x168], eax
call fcn.10001aa0
cmp byte [ebp - 0x161], 0
je 0x10015c4b
xor bl, bl
jmp 0x100161e0
xor eax, eax
mov dword [ebp - 0x54], 0
mov edi, 7
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov dword [ebp - 0x40], edi
mov word [ebp - 0x54], cx
mov byte [ebp - 4], 7
mov dword [ebp - 0x178], ecx
nop
test eax, eax
jne 0x10016025
lea eax, [ebp - 0x54]
cmp eax, ebx
je 0x10015d71
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 0x170], ebx
jb 0x10015c99
mov eax, dword [ebx]
mov dword [ebp - 0x170], eax
mov esi, dword [ebx + 0x10]
cmp esi, edi
ja 0x10015cc6
lea ebx, [ebp - 0x54]
cmp edi, 8
jb 0x10015cab
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x44], esi
add esi, esi
push esi
push eax
push ebx
call fcn.100321a0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x10015d71
cmp esi, 0x7ffffffe
ja 0x10016253
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x10015ce6
mov ebx, SysReAllocString
jmp 0x10015d05
mov edx, edi
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp edi, eax
jbe 0x10015cfc
mov ebx, SysReAllocString
jmp 0x10015d05
lea ebx, [edi + edx]
cmp ecx, ebx
jb 0x10015d05
mov ebx, ecx
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x54]
call fcn.10007610
mov dword [ebp - 0x44], esi
add esi, esi
push esi
push dword [ebp - 0x170]
mov dword [ebp - 0x40], ebx
mov ebx, eax
push ebx
mov dword [ebp - 0x174], eax
call fcn.100321a0
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
cmp edi, 8
jb 0x10015d6e
mov ecx, dword [ebp - 0x54]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x10015d64
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016258
push edi
push ecx
call fcn.100308ca
add esp, 8
mov dword [ebp - 0x54], ebx
mov edi, dword [ebp - 0x178]
lea ebx, [ebp - 0x12]
mov ecx, edi
lea esp, [esp]
mov eax, 0xcccccccd
add ebx, 0xfffffffe
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [ebx], cx
mov ecx, edx
test ecx, ecx
jne 0x10015d80
lea eax, [ebp - 0x12]
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
cmp ebx, eax
jne 0x10015dd1
xor eax, eax
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
jmp 0x10015e6b
lea esi, [ebp - 0x12]
sub esi, ebx
sar esi, 1
cmp esi, 0x7ffffffe
ja 0x10016253
cmp esi, 8
jae 0x10015e12
mov dword [ebp - 0x74], esi
lea eax, [ebp - 0x84]
add esi, esi
mov dword [ebp - 0x70], 7
push esi
push ebx
push eax
call fcn.100321a0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x84], ax
jmp 0x10015e6b
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x10015e26
mov ebx, SysReAllocString
jmp 0x10015e30
cmp ebx, 0xa
jae 0x10015e30
mov ebx, 0xa
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x84]
call fcn.10007610
mov dword [ebp - 0x74], esi
mov edi, eax
add esi, esi
mov dword [ebp - 0x84], edi
push esi
push dword [ebp - 0x174]
mov dword [ebp - 0x70], ebx
push edi
call fcn.100321a0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x168]
or ebx, 0xc
push str.rtmp
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 8
call fcn.10009a40
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 9
push ecx
push eax
push dword [ebp - 0x174]
lea ecx, [ebp - 0xb4]
call fcn.10011b10
or ebx, 2
mov dword [ebp - 0x168], ebx
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1001cb30
mov ecx, dword [ebp - 0xa0]
add esp, 8
mov byte [ebp - 4], 9
cmp ecx, 8
jb 0x10015f09
mov edx, dword [ebp - 0xb4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10015eff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016258
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
mov byte [ebp - 4], 8
cmp ecx, 8
jb 0x10015f6a
mov edx, dword [ebp - 0x9c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10015f60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016258
push ecx
push edx
call fcn.100308ca
add esp, 8
mov ecx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], 7
cmp ecx, 8
jb 0x10015fc8
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10015fbe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016258
push ecx
push edx
call fcn.100308ca
add esp, 8
lea eax, [ebp - 0x54]
push eax
call fcn.100176f0
add esp, 4
test al, al
je 0x10015ff0
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], 0
jb 0x10015feb
mov eax, dword [ebp - 0x54]
xor ecx, ecx
mov word [eax], cx
add edi, 0x7b
mov dword [ebp - 0x178], edi
cmp edi, 0x2710
jae 0x10016012
mov edi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x16c]
jmp 0x10015c70
cmp dword [ebp - 0x44], 0
jne 0x1001601f
xor bl, bl
jmp 0x100161d8
mov ebx, dword [ebp - 0x16c]
cmp dword [ebx + 0x14], 8
mov eax, ebx
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x16c], ebx
jb 0x10016050
mov eax, dword [ebx]
mov dword [ebp - 0x16c], eax
mov edi, dword [ebx + 0x10]
cmp edi, 0x7ffffffe
ja 0x10016253
mov dword [ebp - 0x58], 7
cmp edi, 8
jae 0x1001607c
push 0x10
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x5c], edi
push eax
call fcn.100321a0
jmp 0x100160c3
mov esi, edi
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10016090
mov esi, SysReAllocString
jmp 0x1001609a
cmp esi, 0xa
jae 0x1001609a
mov esi, 0xa
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10007610
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x6c], eax
push ecx
push dword [ebp - 0x16c]
mov dword [ebp - 0x5c], edi
push eax
mov dword [ebp - 0x58], esi
call fcn.100321a0
add esp, 0xc
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1001cb30
add esp, 8
lea ecx, [ebp - 0x6c]
cmp dword [ebp - 0x58], 8
jb 0x100160e9
mov ecx, dword [ebp - 0x6c]
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
jb 0x100160f5
mov eax, dword [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x10016108
xor bl, bl
jmp 0x1001618a
lea ecx, [ebp - 0x160]
call fcn.10016290
push ebx
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x161], 0
call fcn.100176f0
add esp, 4
test al, al
jne 0x1001613d
push 0x12
push ebx
lea ecx, [ebp - 0x160]
call fcn.100165c0
mov bl, al
jmp 0x10016143
mov bl, byte [ebp - 0x161]
cmp dword [ebp - 0x40], 8
lea ecx, [ebp - 0x54]
jb 0x1001614f
mov ecx, dword [ebp - 0x54]
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
jb 0x1001615b
mov eax, dword [ebp - 0x6c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test bl, bl
je 0x1001617d
lea ecx, [ebp - 0x160]
call fcn.10016570
lea ecx, [ebp - 0x160]
call fcn.10016760
lea ecx, [ebp - 0x160]
mov bl, 1
call fcn.100162f0
mov ecx, dword [ebp - 0x58]
cmp ecx, 8
jb 0x100161c4
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100161ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016258
push ecx
push edx
call fcn.100308ca
add esp, 8
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea ecx, [ebp - 0x54]
call fcn.10001aa0
lea ecx, [ebp - 0xcc]
call fcn.10001aa0
lea ecx, [ebp - 0xe4]
call fcn.10001aa0
lea ecx, [ebp - 0xfc]
call fcn.10001aa0
lea ecx, [ebp - 0x114]
call fcn.10001aa0
lea ecx, [ebp - 0x190]
call fcn.10009e80
jmp 0x1001622a
lea ecx, [ebp - 0x190]
xor bl, bl
call fcn.10009e80
jmp 0x1001622a
xor bl, bl
lea ecx, [ebp - 0x184]
call fcn.10009e80
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 - 0x10]
xor ecx, ebp
call fcn.100308d8
mov esp, ebp
pop ebp
ret
call fcn.10003930
call fcn.1003442e
int3