Function at 0x1006d800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a1e70
push eax
mov eax, 0x5018
mov dword fs:[0], esp
call fcn.1009d950
push ebx
lea edx, [ebp - 0x2020]
push esi
mov eax, edx
mov esi, 0x800
push edi
sub ecx, eax
lea eax, [esi + 0x7ffff7fe]
test eax, eax
je 0x1006d85b
movzx eax, word [ecx + edx]
test ax, ax
je 0x1006d854
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x1006d834
jmp 0x1006d858
test esi, esi
jne 0x1006d85b
sub edx, 2
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
xor eax, eax
mov word [edx], ax
mov esi, 0x5c
lea eax, [ebp - 0x2020]
movzx ecx, word [eax]
test cx, cx
je 0x1006d888
cmp ecx, 0x2f
jne 0x1006d881
mov word [eax], si
push eax
call ebx
test eax, eax
jne 0x1006d871
xor eax, eax
lea esi, [ebp - 0x2020]
mov word [ebp - 0x4020], ax
mov word [ebp - 0x5020], ax
mov eax, esi
push 0x3a
push eax
call fcn.1007c926
mov edx, eax
add esp, 8
test edx, edx
je 0x1006d8f2
mov ecx, esi
lea eax, [ebp - 0x4020]
cmp ecx, edx
ja 0x1006d8e3
mov eax, esi
lea edi, [ebp - 0x4020]
mov ecx, edx
sub ecx, eax
and ecx, 0xfffffffe
lea eax, [ecx + 2]
mov ecx, eax
lea eax, [ebp + eax - 0x4020]
shr ecx, 1
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
xor ecx, ecx
push edx
mov word [eax], cx
call ebx
mov esi, eax
jmp 0x1006d995
cmp word [ebp - 0x2020], 0x5c
jne 0x1006d995
cmp word [ebp - 0x201e], 0x5c
jne 0x1006d995
lea eax, [ebp - 0x201c]
push 0x5c
push eax
call fcn.1007c926
mov edx, eax
add esp, 8
test edx, edx
je 0x1006d966
lea eax, [ebp - 0x2020]
lea edi, [ebp - 0x4020]
cmp eax, edx
ja 0x1006d95a
mov ecx, edx
lea esi, [ebp - 0x2020]
sub ecx, eax
and ecx, 0xfffffffe
lea eax, [ecx + 2]
mov ecx, eax
shr ecx, 1
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
lea edi, [ebp - 0x4020]
add edi, eax
xor eax, eax
push edx
mov word [edi], ax
call ebx
mov esi, eax
jmp 0x1006d969
mov edi, dword [ebp - 0x1c]
push 0x5c
push esi
call fcn.1007c926
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1006d995
cmp esi, ecx
jae 0x1006d990
mov edi, edi
mov ax, word [esi]
add esi, 2
mov word [edi], ax
add edi, 2
cmp esi, ecx
jb 0x1006d980
xor eax, eax
mov word [edi], ax
push 0x5c
push esi
call fcn.1007ccce
mov edx, eax
add esp, 8
test edx, edx
jne 0x1006d9b7
push 0x2f
push esi
call fcn.1007ccce
mov edx, eax
add esp, 8
test edx, edx
je 0x1006d9db
lea ecx, [ebp - 0x5020]
cmp esi, edx
ja 0x1006d9d1
mov ax, word [esi]
add esi, 2
mov word [ecx], ax
add ecx, 2
cmp esi, edx
jbe 0x1006d9c1
xor eax, eax
push edx
mov word [ecx], ax
call ebx
mov esi, eax
push 0x2e
push esi
call fcn.1007ccce
xor eax, eax
add esp, 8
mov word [ebp - 0x1020], ax
mov ax, word [ebp - 0x4020]
test ax, ax
je 0x1006da39
cmp ax, 0x5c
jne 0x1006da20
cmp word [ebp - 0x401e], ax
jne 0x1006da20
lea eax, [ebp - 0x4020]
push eax
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1006da39
movzx eax, ax
push eax
lea eax, [ebp - 0x1020]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp word [ebp - 0x5020], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x1006da85
lea eax, [ebp - 0x1020]
push eax
call edi
test eax, eax
jle 0x1006da71
cmp word [ebp + eax*2 - 0x1022], 0x5c
jne 0x1006da71
cmp word [ebp - 0x5020], 0x5c
lea eax, [ebp - 0x501e]
je 0x1006da77
lea eax, [ebp - 0x5020]
push eax
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x5020]
mov edx, 0x800
lea esi, [ebp - 0x1020]
mov eax, ecx
sub esi, eax
lea ebx, [ebx]
lea eax, [edx + 0x7ffff7fe]
test eax, eax
je 0x1006dac7
movzx eax, word [esi + ecx]
test ax, ax
je 0x1006dac0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1006daa0
jmp 0x1006dac4
test edx, edx
jne 0x1006dac7
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea esp, [esp]
lea eax, [ebp - 0x1020]
push 0x5c
push eax
call fcn.1007ccce
add esp, 8
test eax, eax
je 0x1006db30
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1020]
call fcn.1004db50
cmp eax, 0xffffffff
je 0x1006dad0
lea ecx, [ebp - 0x3020]
mov edx, 0x800
lea esi, [ebp - 0x1020]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7ffff7fe]
test eax, eax
je 0x1006db6c
movzx eax, word [esi + ecx]
test ax, ax
je 0x1006db65
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1006db10
jmp 0x1006db69
lea ecx, [ebp - 0x3020]
mov edx, 0x800
lea esi, [ebp - 0x1020]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffff7fe]
test eax, eax
je 0x1006db6c
movzx eax, word [esi + ecx]
test ax, ax
je 0x1006db65
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1006db45
jmp 0x1006db69
test edx, edx
jne 0x1006db6c
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov ecx, 0x800
lea eax, [ebp - 0x3020]
lea esp, [esp]
cmp word [eax], 0
je 0x1006db8e
add eax, 2
sub ecx, 1
jne 0x1006db80
mov eax, 0x800
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
test ecx, ecx
je 0x1006dbed
mov ecx, 0x800
lea eax, [ebp - 0x3020]
lea eax, [eax + edx*2]
sub ecx, edx
je 0x1006dbdf
mov edi, 0x100b0dec
mov edx, SysReAllocString
sub edi, eax
nop
test edx, edx
je 0x1006dbe2
movzx esi, word [edi + eax]
test si, si
je 0x1006dbdb
mov word [eax], si
dec edx
add eax, 2
sub ecx, 1
jne 0x1006dbc0
jmp 0x1006dbdf
test ecx, ecx
jne 0x1006dbe2
sub eax, 2
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x1020]
mov edx, 0x800
lea esi, [ebp - 0x5020]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7ffff7fe]
test eax, eax
je 0x1006dc29
movzx eax, word [esi + ecx]
test ax, ax
je 0x1006dc22
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x1006dc02
jmp 0x1006dc26
test edx, edx
jne 0x1006dc29
sub ecx, 2
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x3020]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x1020]
push eax
call edi
cmp esi, eax
jge 0x1006dda9
lea ebx, [ebx]
lea eax, [ebp - 0x3020]
push eax
call edi
lea esi, [ebp - 0x3020]
lea esi, [esi + eax*2]
lea eax, [ebp - 0x3020]
push eax
call edi
lea edx, [ebp - 0x1020]
lea edx, [edx + eax*2]
movzx eax, word [edx]
test ax, ax
je 0x1006dc9b
lea esp, [esp]
cmp ax, 0x5c
je 0x1006dc9b
mov word [esi], ax
add esi, 2
push edx
call ebx
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x1006dc80
xor eax, eax
lea ecx, [ebp - 0x18]
mov word [esi], ax
lea eax, [ebp - 0x3020]
push 0xf8
push eax
call fcn.1004d280
cmp byte [ebp - 0xe], 0
mov esi, dword [ebp - 0x14]
je 0x1006dcd1
test esi, esi
je 0x1006dcd7
push esi
call fcn.10086818
add esp, 4
xor esi, esi
mov dword [ebp - 0x14], esi
jmp 0x1006dcd7
mov eax, esi
test esi, esi
jne 0x1006dcda
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov dword [ebp - 4], 0
test esi, esi
je 0x1006dd00
push esi
call fcn.10086818
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1006ddbc
mov ecx, 0x800
lea eax, [ebp - 0x3020]
lea ebx, [ebx]
cmp word [eax], 0
je 0x1006dd2e
add eax, 2
sub ecx, 1
jne 0x1006dd20
mov eax, 0x800
mov edx, ecx
sub eax, ecx
neg edx
sbb edx, edx
and edx, eax
test ecx, ecx
je 0x1006dd87
mov ecx, 0x800
lea eax, [ebp - 0x3020]
lea eax, [eax + edx*2]
sub ecx, edx
je 0x1006dd7f
mov edi, 0x100b0dec
mov edx, SysReAllocString
sub edi, eax
nop
test edx, edx
je 0x1006dd82
movzx esi, word [edi + eax]
test si, si
je 0x1006dd7b
mov word [eax], si
dec edx
add eax, 2
sub ecx, 1
jne 0x1006dd60
jmp 0x1006dd7f
test ecx, ecx
jne 0x1006dd82
sub eax, 2
xor ecx, ecx
mov word [eax], cx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x3020]
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x1020]
push eax
call edi
cmp esi, eax
jl 0x1006dc50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, 0xf
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret