Function at 0x10004c90
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4944
call fcn.100974c0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x4940], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x14], eax
xor eax, eax
push 0x61a
push eax
mov word [esp + 0x4330], ax
lea eax, [esp + 0x4332]
push eax
xor edi, edi
call sub.MSVCR110.dll_memset
mov ebx, esi
add esp, 0xc
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10004ce2
push esi
lea eax, [esp + 0x432c]
sub ebx, ecx
push 0x30e
push eax
sar ebx, 1
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
cmp word [esi + ebx*2 - 2], 0x5c
je 0x10004d44
push 0x100a21f4
lea eax, [esp + 0x432c]
push 0x30e
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
lea ebx, [esp + 0x4334]
add esp, 0xc
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10004d35
sub ebx, ecx
sar ebx, 1
call fcn.10001090
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esp + 0x2c]
mov dword [esp + 0xac], 0x10001000
mov dword [esp + 0xb0], 0x10001020
mov dword [esp + 0xb4], 0x10001000
mov dword [esp + 0xb8], 0x10001020
mov dword [esp + 0x40e0], 0x10002000
mov dword [esp + 0x40e4], 0x10002020
mov dword [esp + 0xbc], 0x10005f00
mov dword [esp + 0xc0], 0x10005f60
mov dword [esp + 0xc4], 0x10005f70
mov dword [esp + 0xc8], 0x10005fc0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x40cc], eax
cmp eax, 0xffffffff
jne 0x10004df2
call esi
test eax, eax
je 0x10004df2
mov edi, 0xb
jmp 0x10004e50
xorps xmm0, xmm0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x40cc]
movlpd qword [esp + 0x30], xmm0
call fcn.100049c0
test eax, eax
jne 0x10004e14
lea edi, [eax + 0xb]
jmp 0x10004e50
push 0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x40d0]
call fcn.10001f50
add esp, 4
test eax, eax
je 0x10004e34
mov edi, 0xb
jmp 0x10004e50
lea eax, [esp + 0x40c4]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], edi
mov dword [esp + 0xb4], edi
lea ecx, [esp + 0x40]
call fcn.100022b0
test edi, edi
jne 0x10005171
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea edx, [esp + 0xa8]
call fcn.100041e0
mov edi, eax
add esp, 8
test edi, edi
je 0x10004e9e
lea edx, [esp + 0x90]
lea ecx, [esp + 0x40]
call fcn.10002320
test edi, edi
jne 0x10005171
xor edx, edx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], edx
cmp dword [esp + 0x5c], edx
jbe 0x1000515b
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea esp, [esp]
mov eax, dword [esp + 0x50]
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x28], 0
mov ecx, dword [eax + edx*4]
mov edx, dword [eax + edx*4 + 4]
sub edx, ecx
mov dword [esp + 0x10], 0
cmp edx, 0x104
jae 0x10005156
lea esi, [esp + 0x4328]
lea esi, [esi + ebx*2]
test esi, esi
je 0x10004f47
mov eax, dword [esp + 0x84]
lea esi, [eax + ecx*2]
test edx, edx
je 0x10004f3d
lea eax, [esp + 0x4328]
lea eax, [eax + ebx*2]
mov ecx, eax
sub esi, eax
mov ax, word [esi + ecx]
mov word [ecx], ax
lea ecx, [ecx + 2]
dec edx
jne 0x10004f30
lea esi, [esp + 0x4328]
lea esi, [esi + ebx*2]
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x3c]
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x60]
call fcn.10004580
mov edi, eax
add esp, 0x20
mov dword [esp + 0x18], edi
test edi, edi
jne 0x1000524d
cmp word [esi], di
je 0x10004fe5
lea eax, [esp + 0x4328]
lea eax, [eax + ebx*2]
cmp word [esi], 0x2f
jne 0x10004fda
xor eax, eax
push eax
mov word [esi], ax
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10004fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x5c
mov word [esi], ax
lea eax, [esp + 0x4328]
lea eax, [eax + ebx*2]
inc edi
cmp word [eax + edi*2], 0
lea esi, [eax + edi*2]
jne 0x10004fa4
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x19], 0
je 0x10005032
push 0
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000500b
call esi
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
inc edx
add ecx, 0x20
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
cmp edx, dword [esp + 0x5c]
jb 0x10004ed0
jmp 0x1000515b
lea eax, [esp + 0x40d8]
push eax
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x10005149
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x4340]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x1000508a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x10005156
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
lea edx, [edx + ecx]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], esi
call fcn.10001eb0
add esp, 4
test eax, eax
jne 0x100050b8
cmp dword [esp + 0x10], esi
je 0x100050bf
mov edi, 0xb
jmp 0x100050c3
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
cmp byte [ecx + 0x1c], 0
je 0x100050f7
mov eax, dword [ecx]
mov dword [esp + 0x40d0], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x40d4], eax
lea eax, [esp + 0x40d0]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp esi, 0xffffffff
je 0x10005111
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10005111
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
jmp 0x10005119
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
test edi, edi
jne 0x1000515b
test eax, eax
jne 0x10005145
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x1d], 0
je 0x1000500f
push dword [eax + 0x14]
lea eax, [esp + 0x432c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1000500f
mov edi, eax
jmp 0x1000515b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xb
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x9c]
add esp, 8
push dword [esp + 0x70]
lea eax, [esp + 0x94]
push eax
call dword [esp + 0x9c]
push dword [esp + 0x7c]
lea eax, [esp + 0x9c]
push eax
call dword [esp + 0xa4]
push dword [esp + 0x88]
lea eax, [esp + 0xa4]
push eax
call dword [esp + 0xac]
push dword [esp + 0x94]
lea eax, [esp + 0xac]
push eax
call dword [esp + 0xb4]
push dword [esp + 0xa0]
lea eax, [esp + 0xb4]
push eax
call dword [esp + 0xbc]
push dword [esp + 0xac]
lea eax, [esp + 0xbc]
push eax
call dword [esp + 0xc4]
add esp, 0x30
lea edx, [esp + 0x90]
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
call fcn.10002200
mov eax, dword [esp + 0x40cc]
cmp eax, 0xffffffff
je 0x10005231
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10005231
call esi
mov ecx, dword [esp + 0x494c]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000515b