Function at 0x1003a810
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x100b0270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x67c], ecx
push 0x105
push eax
mov dword [ebp - 0x678], eax
mov edi, edx
lea eax, [ebp - 0x110]
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, edi
add esp, 0xc
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1003a850
sub ebx, ecx
mov dword [ebp - 0x690], ebx
lea esi, [ebx + 1]
cmp esi, 0x104
jbe 0x1003a880
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100908b3
mov esp, ebp
pop ebp
ret
push 0x458
lea eax, [ebp - 0x670]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x110]
push edi
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov al, byte [ebp + ebx - 0x111]
add esp, 0xc
cmp al, 0x2f
je 0x1003a8c9
cmp al, 0x5c
je 0x1003a8c9
mov byte [ebp + ebx - 0x110], 0x5c
mov dword [ebp - 0x690], esi
mov esi, dword [ebp - 0x67c]
test esi, esi
je 0x1003acf9
mov eax, dword [esi + 0x10]
xor ebx, ebx
mov dword [ebp - 0x68c], eax
mov dword [ebp - 0x688], ebx
test eax, eax
je 0x1003acf9
xor eax, eax
mov dword [ebp - 0x678], eax
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x1003a90e
cmp ebx, dword [esi + 0x10]
jae 0x1003a90e
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
add eax, dword [ecx]
jmp 0x1003a910
xor eax, eax
push ecx
lea ecx, [ebp - 0x670]
mov edx, ebx
push ecx
push eax
mov ecx, esi
call fcn.10039b30
add esp, 0xc
test eax, eax
je 0x1003acef
lea edx, [ebp - 0x618]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1003a936
sub edx, ecx
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x674], edx
xor esi, esi
mov dword [ebp - 0x680], ebx
lea ecx, [ebp - 0x618]
test edx, edx
je 0x1003acdd
nop
mov al, byte [ecx]
cmp al, 0x2f
je 0x1003a96a
cmp al, 0x5c
jne 0x1003a96d
inc ecx
jmp 0x1003a960
mov eax, dword [ebp - 0x68c]
mov dword [ebp - 0x684], ecx
mov dword [ebp - 0x68c], eax
nop
mov bh, byte [ebx + ecx]
cmp bh, 0x2f
je 0x1003a99d
cmp bh, 0x5c
je 0x1003a99d
lea eax, [esi + edi]
inc esi
mov byte [ebp + eax - 0x618], bh
jmp 0x1003aa31
test esi, esi
je 0x1003aa2f
lea edx, [ebp - 0x618]
mov ecx, 0x100aa2b4
add edx, edi
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x1003a9d4
test bl, bl
je 0x1003a9d0
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x1003a9d4
add eax, 2
add ecx, 2
test bl, bl
jne 0x1003a9b4
xor eax, eax
jmp 0x1003a9d9
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003aa23
mov eax, 0x100aa2b8
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1003aa02
test cl, cl
je 0x1003a9fe
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1003aa02
add edx, 2
add eax, 2
test cl, cl
jne 0x1003a9e2
xor eax, eax
jmp 0x1003aa07
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x674]
mov ecx, dword [ebp - 0x684]
test eax, eax
je 0x1003aa2f
add edi, esi
mov byte [ebp + edi - 0x618], bh
inc edi
jmp 0x1003aa2f
mov edx, dword [ebp - 0x674]
mov ecx, dword [ebp - 0x684]
xor esi, esi
mov ebx, dword [ebp - 0x680]
inc ebx
mov dword [ebp - 0x680], ebx
cmp ebx, edx
jb 0x1003a980
test esi, esi
je 0x1003aab9
lea edx, [ebp - 0x618]
mov ecx, 0x100aa2b4
add edx, edi
mov eax, edx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x1003aa80
test bl, bl
je 0x1003aa7c
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x1003aa80
add eax, 2
add ecx, 2
test bl, bl
jne 0x1003aa60
xor eax, eax
jmp 0x1003aa85
sbb eax, eax
or eax, 1
test eax, eax
je 0x1003aab9
mov eax, 0x100aa2b8
nop
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x1003aab0
test cl, cl
je 0x1003aaac
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x1003aab0
add edx, 2
add eax, 2
test cl, cl
jne 0x1003aa90
xor eax, eax
jmp 0x1003aab5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1003aac1
mov byte [ebp + edi - 0x618], 0
mov eax, 0x104
lea edx, [ebp - 0x618]
sub eax, dword [ebp - 0x690]
push eax
push edx
push eax
lea eax, [ebp - 0x110]
add eax, dword [ebp - 0x690]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov bl, byte [ebp - 0x110]
add esp, 0x10
mov bh, byte [ebp - 0x10f]
cmp bl, 0x41
jl 0x1003ab01
cmp bl, 0x5a
jle 0x1003ab08
lea eax, [ebx - 0x61]
cmp al, 0x19
ja 0x1003ab14
cmp bh, 0x3a
jne 0x1003ab14
mov esi, 1
jmp 0x1003ab16
xor esi, esi
push 0x105
lea eax, [ebp - 0x218]
mov dword [ebp - 0x674], esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x1003ab42
mov byte [ebp - 0x218], bl
mov byte [ebp - 0x217], bh
lea ebx, [esi + esi]
lea eax, [ebp - 0x110]
add eax, ebx
cmp byte [eax], 0
je 0x1003ac23
sub eax, ebx
mov dword [ebp - 0x680], eax
nop
cmp ebx, 0x104
jge 0x1003ac23
mov al, byte [eax + ebx]
cmp al, 0x2f
je 0x1003ab7b
cmp al, 0x5c
jne 0x1003ac02
test esi, esi
jne 0x1003ab85
test ebx, ebx
jg 0x1003ab8a
jmp 0x1003ac02
cmp ebx, 2
jle 0x1003ac02
lea esi, [ebp - 0x218]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1003ab93
sub esi, ecx
mov edx, 2
inc esi
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x218]
push esi
push edi
push esi
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp esi, 0xffffffff
jne 0x1003abfc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x11
jne 0x1003accb
mov esi, dword [ebp - 0x674]
mov eax, dword [ebp - 0x680]
mov al, byte [eax + ebx]
mov byte [ebp + ebx - 0x218], al
inc ebx
mov eax, dword [ebp - 0x680]
cmp byte [eax + ebx], 0
jne 0x1003ab60
mov ax, word [ebp - 0x660]
shr ax, 8
cmp ax, 3
je 0x1003ac3a
cmp ax, 0x13
jne 0x1003ac46
test dword [ebp - 0x634], 0x20000000
jne 0x1003acaa
mov esi, dword [ebp - 0x67c]
mov ebx, dword [ebp - 0x688]
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x1003ac7f
cmp ebx, dword [esi + 0x10]
jae 0x1003ac7f
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
add eax, dword [ecx]
je 0x1003ac7f
movzx ecx, word [eax + 0x1c]
test ecx, ecx
je 0x1003ac77
cmp byte [ecx + eax + 0x2d], 0x2f
je 0x1003acb6
test byte [eax + 0x26], 0x10
je 0x1003ac86
jmp 0x1003acb6
mov dword [esi + 0x1c], 0x18
push ecx
lea eax, [ebp - 0x110]
mov edx, ebx
push eax
mov ecx, esi
call fcn.1003a6c0
add esp, 8
test eax, eax
jne 0x1003acb6
mov dword [ebp - 0x678], 0xffffffed
jmp 0x1003acf9
mov ebx, dword [ebp - 0x688]
mov esi, dword [ebp - 0x67c]
inc ebx
mov dword [ebp - 0x688], ebx
cmp ebx, dword [ebp - 0x68c]
jb 0x1003a8f8
jmp 0x1003acf9
mov esi, dword [ebp - 0x67c]
mov dword [ebp - 0x678], 0xffffffe9
jmp 0x1003acf9
mov esi, dword [ebp - 0x67c]
mov dword [ebp - 0x678], 0xfffffffe
jmp 0x1003acf9
mov dword [ebp - 0x678], 0xfffffffd
mov edx, 1
mov ecx, esi
call fcn.10039890
test eax, eax
mov ecx, 0xffffffe7
mov eax, dword [ebp - 0x678]
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100908b3
mov esp, ebp
pop ebp
ret