Function at 0x1000a760
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x100b5148
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x34]
call fcn.10001bc0
mov ecx, dword [0x100d302c]
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x30]
push edx
mov byte [esp + 0x2c], 1
call fcn.10033370
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add esp, 4
cmp edi, esi
je 0x1000a7ca
push edi
call ebp
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
call fcn.100096e0
test eax, eax
je 0x1000a7ee
push esi
push edi
mov edi, dword [esp + 0x20]
push edi
call fcn.1007f6e0
mov dword [edi - 8], esi
add esp, 0xc
mov byte [esi + edi], 0
push 0x5f
push 0x20
lea ecx, [esp + 0x20]
call fcn.10009a10
mov edi, dword [ebx + 0x100c4]
cmp dword [edi - 0xc], 0
jl 0x1000a817
mov dword [esp + 0x14], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1000a851
mov eax, dword [0x100d302c]
mov dword [esp + 0x14], eax
test edi, edi
jne 0x1000a828
xor esi, esi
jmp 0x1000a82d
push edi
call ebp
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.100096e0
test eax, eax
je 0x1000a851
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
call fcn.1007f6e0
mov dword [edi - 8], esi
add esp, 0xc
mov byte [esi + edi], 0
push 0x100bae9c
push 0x100bae9c
mov byte [esp + 0x30], 2
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov edi, dword [esp + 0x18]
mov ecx, dword [edi - 8]
push edi
push ecx
lea ecx, [esp + 0x1c]
call fcn.100098f0
push str..magicdeskfile
push str..magicdeskfile
call ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov ebp, dword [esp + 0x30]
push ebp
call fcn.100332a0
add esp, 4
test eax, eax
je 0x1000a986
push ebp
call fcn.10033150
mov esi, dword [esp + 0x18]
add esp, 4
cmp dword [ebx + 0x100c8], 0
mov dword [esp + 0x1c], eax
je 0x1000a91f
lea edx, [esp + 0x30]
push edx
lea ebp, [ebx + 0x100d0]
push ebp
call fcn.10009510
test al, al
je 0x1000a91b
mov eax, dword [ebx + 0x100a4]
imul eax, eax, 0xf4240
cmp dword [esp + 0x1c], eax
jge 0x1000a8f8
mov ecx, dword [esp + 0x30]
push 0
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.100097c0
mov eax, dword [esp + 0x30]
mov ecx, dword [ebx + 0x100c8]
push edi
push eax
push esi
push 0xc9
call ecx
add esp, 0x10
mov ebp, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, dword [0x100d3028]
je 0x1000a943
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1000a943
push esi
call fcn.1007fde4
add esp, 4
lea eax, [edi - 0xc]
cmp eax, dword [0x100d3028]
je 0x1000a961
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x1000a961
push esi
call fcn.1007fde4
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x100d3028]
je 0x1000a97f
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x1000a97f
push esi
call fcn.1007fde4
add esp, 4
mov eax, 1
jmp 0x1000a9ec
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, dword [0x100d3028]
je 0x1000a9ae
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x1000a9ae
push esi
call fcn.1007fde4
add esp, 4
lea eax, [edi - 0xc]
cmp eax, dword [0x100d3028]
je 0x1000a9cc
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x1000a9cc
push esi
call fcn.1007fde4
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x100d3028]
je 0x1000a9ea
lea esi, [ebp - 0xc]
push esi
call ebx
test eax, eax
jg 0x1000a9ea
push esi
call fcn.1007fde4
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4