Function at 0x101d589
Capabilities:
Copy file

Disassembly:
push 0x2c
mov eax, 0x10558b8
call fcn.01021eb9
mov esi, 0x1064ba8
push esi
lea ecx, [ebp - 0x20]
call fcn.01015076
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x18]
call fcn.01015076
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.01015076
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.01015076
push esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.01015076
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.01015076
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.01015076
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.01015076
mov byte [ebp - 4], 7
call fcn.010524a0
test eax, eax
je 0x101d674
cmp eax, 0xb7
je 0x101d674
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.010147cd
xor eax, eax
call fcn.01021fa5
ret 8
push 0x105
lea ecx, [ebp - 0x18]
call fcn.010158a3
push 0x104
push eax
call fcn.0105235c
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
test eax, eax
je 0x101d69f
call fcn.01015023
jmp 0x101d612
call fcn.01015023
push 0
lea ecx, [ebp - 0x30]
call fcn.010161a7
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
mov edi, 0x1064710
push edi
mov byte [ebp - 4], 8
call fcn.010364e8
mov ecx, dword [ebp - 0x30]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 7
call fcn.010147cd
test bl, bl
je 0x101d744
xor esi, esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.010147cd
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.010147cd
mov eax, esi
jmp 0x101d66c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.01036032
test al, al
je 0x101d850
push 0x1004b80
lea ecx, [ebp - 0x1c]
call fcn.01018c3e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.01036032
test al, al
je 0x101d850
xor ebx, ebx
cmp dword [section..data], ebx
je 0x101d850
mov edi, 0x1063008
push dword [edi]
lea ecx, [ebp - 0x30]
call fcn.010161a7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 9
call fcn.010360f6
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.010147cd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.010360f6
lea eax, [ebp - 0x14]
push eax
call fcn.01035549
test al, al
je 0x101d844
push dword [edi]
lea ecx, [ebp - 0x34]
call fcn.010161a7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0xa
call fcn.010360f6
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.010147cd
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.010360f6
lea eax, [ebp - 0x10]
push eax
call fcn.01035549
test al, al
jne 0x101d844
lea eax, [ebp - 0x10]
push eax
call fcn.010373ce
test al, al
je 0x101d844
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
add edi, 0xc
cmp dword [edi - 8], ebx
jne 0x101d792
push 1
xor edi, edi
push edi
lea eax, [ebp - 0x34]
push eax
call fcn.0101bd38
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.01015959
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.010147cd
mov eax, dword [ebp - 0x20]
cmp dword [eax - 0xc], edi
je 0x101d8fd
push esi
lea ecx, [ebp - 0x30]
call fcn.01015076
push 0x1004a3c
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.010161a7
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xd
call fcn.010360f6
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.010147cd
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push ecx
mov dword [ebp - 0x34], esp
mov ecx, esp
push eax
call fcn.010150a5
push ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 0xe
call fcn.010150a5
mov byte [ebp - 4], 0xc
call fcn.0103743c
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
mov byte [ebp - 4], 7
call fcn.010147cd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], edi
jne 0x101d90f
push dword [ebp + 8]
call fcn.01015aaf
xor esi, esi
inc esi
jmp 0x101d6e5