Function at 0x1003a220
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003dfd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10052260]
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.1003d81e
add esp, 8
test eax, eax
jne 0x1003a272
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.1001df80
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 0x1003a358
push str.gma.dll
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.100104e0
mov eax, dword [eax]
push 0
push eax
call fcn.1003d81e
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 0x1003a2d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1003a358
push str.gma.dll
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.100104e0
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 0x1003a323
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 0x1003a342
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.1001e150
add esp, 4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.10001d80
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 0x1003a393
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.100104e0
mov eax, dword [eax]
push 0
push eax
call fcn.1003d81e
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 0x1003a3d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x1003a2dc
lea ecx, [ebp - 0x10]
push ecx
call fcn.1001e7b0
add esp, 4
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.10001d80
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 0x1003a417
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.100104e0
mov eax, dword [eax]
push 0
push eax
call fcn.1003d81e
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 0x1003a459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x1003a48b
push str.gma.dll
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.100104e0
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 0x1003a305
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 0x1003a4aa
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