Function at 0x10003380
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
push esi
call fcn.10003010
add esp, 4
test eax, eax
jne 0x100035b5
mov eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100035b5
push ebx
push ebp
push edi
mov edi, esi
or ecx, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call ebp
mov ebx, eax
test ebx, ebx
je 0x10003598
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x103
push ecx
push 0x40
call ebp
mov dword [esp + 0x14], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x103
push ecx
push 0x40
call ebp
mov ebp, eax
push esi
push ebx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
mov dword [esp + 0x20], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x1000344d
call fcn.10003a30
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x1000349b
call fcn.10003a30
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
sub edi, ecx
push eax
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10003a80
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.10003990
mov al, byte [ebx + 1]
add esp, 4
cmp al, 0x3a
jne 0x100034c2
mov cl, byte [ebx]
push ecx
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x100034c2
cmp byte [ebx], 0
jne 0x100034d7
mov al, byte [ebx]
cmp al, 0x2f
je 0x100034cc
cmp al, 0x5c
jne 0x100034de
mov al, byte [ebx + 1]
cmp al, 0x2f
je 0x100034d7
cmp al, 0x5c
jne 0x100034de
mov al, byte [ebx + 2]
test al, al
je 0x10003503
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
cmp eax, ecx
jbe 0x10003503
push ebx
call fcn.10003010
add esp, 4
test eax, eax
je 0x1000340c
mov al, byte [ebp]
test al, al
je 0x10003522
cmp al, 0x2f
je 0x10003522
cmp al, 0x5c
je 0x10003522
push ebp
call dword [sym.imp.USER32.dll_CharNextA]
mov ebp, eax
mov al, byte [ebp]
test al, al
jne 0x1000350a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp]
push eax
mov byte [esp + 0x1b], cl
mov byte [ebp], 0
call fcn.10003a80
mov al, byte [esp + 0x1b]
add esp, 8
mov byte [ebp], al
inc ebp
test al, al
je 0x1000357e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10003503
mov edx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
mov esi, dword [esp + 0x24]
jmp 0x1000359e
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call edi
mov ecx, dword [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret
mov eax, 1
pop esi
add esp, 0x10
ret