Function at 0x1001a000
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10034d28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10046f20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0
push eax
call fcn.10022044
add esp, 8
test eax, eax
jne 0x1001a052
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
call fcn.1001af40
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
or edi, 0xffffffff
mov dword [ebp - 4], 0
test eax, eax
je 0x1001a138
push str.gma.dll
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.10007cc0
mov eax, dword [eax]
push 0
push eax
call fcn.10022044
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a0b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1001a138
push str.gma.dll
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.10007cc0
mov ecx, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
mov eax, dword [ebp - 0x10]
sete bl
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a103
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x1001a122
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
push ecx
call fcn.1001b110
add esp, 4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.100080e0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001a173
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.gma.dll
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.10007cc0
mov eax, dword [eax]
push 0
push eax
call fcn.10022044
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a1b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x1001a0bc
lea ecx, [ebp - 0x10]
push ecx
call fcn.1001b6a0
add esp, 4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.100080e0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1001a1f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.gma.dll
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.10007cc0
mov eax, dword [eax]
push 0
push eax
call fcn.10022044
add esp, 0x14
test eax, eax
mov eax, dword [ebp - 0x10]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001a239
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1001a26b
push str.gma.dll
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.10007cc0
mov ecx, dword [esi]
mov eax, dword [eax]
add esp, 0xc
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
mov eax, dword [ebp - 0x14]
jmp 0x1001a0e5
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x1001a28a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4