Function at 0x10020d90
Capabilities:
Create directory
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fd75
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10020dd5
xor eax, eax
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jle 0x10020dbe
push esi
call sym.KwLib.dll_int___cdecl_KwLib::Dir::IsExistFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 4
test eax, eax
je 0x10020e01
mov eax, 1
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.100018e0
mov dword [esp + 0xac], 0
lea ecx, [esp + 0x38]
cmp dword [esp + 0x4c], 0x10
lea edx, [esp + 0x12]
mov eax, dword [esp + 0x48]
cmovae ecx, dword [esp + 0x38]
add eax, ecx
mov byte [esp + 0x12], 0x5c
cmp dword [esp + 0x4c], 0x10
lea ecx, [esp + 0x38]
push eax
cmovae ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x1b]
mov byte [esp + 0x1b], 0x2f
call fcn.10005290
add esp, 8
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
push 0x10059c78
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], 1
call fcn.10001780
lea eax, [esp + 0x2c]
mov byte [esp + 0xac], 2
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
call sym.KwLib.dll_int___cdecl_KwLib::StringUtility::Tokenize_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______
mov byte [esp + 0xb8], 1
add esp, 0xc
cmp dword [esp + 0x28], 0x10
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10020ed8
push dword [esp + 0x14]
call edi
add esp, 4
mov esi, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x50], 0
cmp eax, esi
je 0x10020f1a
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.100018e0
add esi, 0x18
cmp esi, dword [esp + 0x30]
je 0x10021099
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ecx]
push 1
push 0x10059c78
lea ecx, [esp + 0x40]
call fcn.10001f40
push 0xffffffffffffffff
push 0
push esi
lea ecx, [esp + 0x44]
call fcn.100022e0
mov eax, dword [0x1006e3e8]
cmp eax, 0xffffffff
jne 0x10020f91
lea eax, [esp + 0x8c]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10020f87
call ebx
cmp eax, 0x57
jne 0x10020f87
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10020f91
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x78]
call fcn.10008690
add esp, 4
mov edx, eax
mov byte [esp + 0xac], 3
cmp dword [edx + 0x14], 8
jb 0x10020fb4
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
cmp word [edx], ax
jne 0x10020fd4
xor ecx, ecx
jmp 0x10020ff5
mov ecx, edx
lea ebx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020fe0
sub ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.100026d0
mov byte [esp + 0xac], 1
cmp dword [esp + 0x88], 8
jb 0x1002101b
push dword [esp + 0x74]
call edi
add esp, 4
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x50]
push ecx
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1002107c
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jne 0x10021073
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push 0x80
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1002107c
call ebx
cmp eax, 0xb7
jne 0x100210dd
cmp dword [esp + 0x28], 8
jb 0x1002108c
push dword [esp + 0x14]
call edi
add esp, 4
add esi, 0x18
cmp esi, dword [esp + 0x30]
jne 0x10020f30
mov esi, 1
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x100210b6
push dword [esp + 0x30]
push ebx
call fcn.10004580
push ebx
call edi
add esp, 4
cmp dword [esp + 0x4c], 0x10
jb 0x100210c6
push dword [esp + 0x38]
call edi
add esp, 4
mov ecx, dword [esp + 0xa4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x28], 8
jb 0x100210ed
push dword [esp + 0x14]
call edi
add esp, 4
xor esi, esi
jmp 0x1002109e