Function at 0x100117b0
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
mov eax, dword [0x100ac06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, edx
mov dword [ebp - 0x34c], ebx
push edi
mov dword [ebp - 0x350], eax
cmp dword [esi + 0x10], 0x104
jae 0x10011ba5
cmp dword [eax + 0x10], 0x104
jae 0x10011ba5
push eax
lea ecx, [ebp - 0x50]
call fcn.1000b3e0
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x50]
push eax
call edi
cmp eax, 0xffffffff
je 0x100118ab
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x20]
call fcn.10011570
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x10011833
push 0xffffffffffffffff
push ebx
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x20]
call fcn.1000b2d0
cmp dword [ebp - 0x40], ebx
je 0x100118eb
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.10011570
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x10011b7d
cmp dword [ebp - 0x40], eax
jb 0x1001187d
lea ecx, [ebp - 0x98]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.10012170
test eax, eax
je 0x10011b7d
push 3
push ecx
push esi
lea ecx, [ebp - 0x344]
call fcn.10015b10
push esi
call fcn.10011bc0
add esp, 4
test al, al
jne 0x10011908
lea ecx, [ebp - 0x344]
xor bl, bl
call fcn.10015d30
jmp 0x10011b7f
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x50]
call fcn.10012db0
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.10011570
lea ecx, [ebp - 0x50]
cmp ecx, eax
je 0x100118d2
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x20]
call fcn.1000b2d0
lea ecx, [ebp - 0x80]
call fcn.1000b2d0
cmp dword [ebp - 0x40], ebx
jne 0x10011844
lea ecx, [ebp - 0x50]
xor bl, bl
call fcn.1000b2d0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x38]
call fcn.1000b3e0
mov ecx, esi
call fcn.10011be0
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x34c], al
mov byte [ebp - 0x345], 1
call fcn.1000b3e0
mov ecx, dword [ebp - 0x350]
call fcn.10011be0
test al, al
je 0x10011961
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.10012db0
lea ecx, [ebp - 0x68]
cmp ecx, eax
je 0x10011959
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x80]
call fcn.1000b2d0
cmp dword [ebp - 0x28], 0
je 0x10011b4e
push dword [ebp - 0x350]
lea ecx, [ebp - 0x20]
call fcn.1000b3e0
sub esp, 8
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x38]
sub esp, 8
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov ecx, esp
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx + 4], eax
call fcn.10012640
add esp, 0x10
test al, al
jne 0x100119cd
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x68]
call fcn.10012b70
test al, al
je 0x10011b71
cmp byte [ebp - 0x34c], 0
je 0x10011a1e
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call edi
cmp eax, 0xffffffff
je 0x100119f4
shr eax, 4
and al, 1
jne 0x10011aa7
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push 0
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10011aa7
test bl, 4
je 0x10011aa0
and ebx, 0xfffffffb
jmp 0x10011a95
lea ecx, [ebp - 0x38]
call fcn.10013450
test al, al
jne 0x10011a87
lea ecx, [ebp - 0x20]
call fcn.10013450
test al, al
jne 0x10011a87
cmp dword [ebp - 0x28], 0x104
jae 0x10011a87
cmp dword [ebp - 0x10], 0x104
jae 0x10011a87
cmp dword [ebp - 0xc], 8
lea esi, [ebp - 0x20]
push 0
cmovae esi, dword [ebp - 0x20]
lea eax, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
push esi
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10011a87
push esi
call edi
cmp eax, 0xffffffff
je 0x10011a87
test al, 1
je 0x10011a83
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
jmp 0x10011a89
xor al, al
test al, al
jne 0x10011aa7
test bl, 8
je 0x10011aa0
and ebx, 0xfffffff7
lea ecx, [ebp - 0x404]
call fcn.100168c0
mov byte [ebp - 0x345], 0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x344]
call fcn.10015d90
lea ecx, [ebp - 0x38]
cmp ecx, eax
je 0x10011ac7
push 0xffffffffffffffff
push 0
push eax
call fcn.1000bb10
lea ecx, [ebp - 0x80]
call fcn.1000b2d0
cmp dword [ebp - 0x28], 0
je 0x10011b39
cmp byte [ebp - 0x344], 0
jne 0x10011b0f
test bl, 0x10
je 0x10011af1
lea ecx, [ebp - 0x404]
and ebx, 0xffffffef
call fcn.100168c0
push 0x250
lea eax, [ebp - 0x654]
push 0
push eax
call fcn.10062800
mov eax, dword [ebp - 0x654]
add esp, 0xc
jmp 0x10011b2e
mov eax, dword [ebp - 0x340]
lea esi, [ebp - 0x340]
mov ecx, 0x94
lea edi, [ebp - 0x654]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
mov dword [ebp - 0x34c], eax
lea ecx, [ebp - 0x20]
call fcn.1000b2d0
cmp byte [ebp - 0x345], 0
jne 0x10011961
mov bl, byte [ebp - 0x345]
lea ecx, [ebp - 0x68]
call fcn.1000b2d0
lea ecx, [ebp - 0x38]
call fcn.1000b2d0
lea ecx, [ebp - 0x344]
call fcn.10015d30
jmp 0x10011b7f
lea ecx, [ebp - 0x20]
xor bl, bl
call fcn.1000b2d0
jmp 0x10011b54
xor bl, bl
lea ecx, [ebp - 0x98]
call fcn.1000b2d0
lea ecx, [ebp - 0x50]
call fcn.1000b2d0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100205ba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100205ba
mov esp, ebp
pop ebp
ret