Function at 0x10012e6
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [ebx + 0xac], 0
mov dword [ebp - 0xc], edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], edi
jne 0x1004df0
cmp byte [ebx + 0x95], 0
jne 0x1001326
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::IsEmpty_void_const]
test al, al
jne 0x100192f
cmp byte [ebx + 0xbd], 0
jne 0x100137a
cmp byte [ebx + 0xa4], 0
jne 0x100137a
cmp byte [ebp + 0x18], 0
jne 0x1003df3
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ulib.dll_public:_static_class_FSN_DIRECTORY____stdcall_SYSTEM::QueryDirectory_class_PATH_const___unsigned_char_]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov esi, dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSNODE::SetAttributes_unsigned_long_int__unsigned_long_int__]
je 0x1003cb4
cmp byte [ebx + 0xa7], 0
jne 0x100137a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x248]
push 0
and eax, 0xfffffffe
push eax
call esi
and dword [ebp - 0x18], 0
and dword [ebp - 8], 0
mov byte [ebp + 0x1b], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ulib.dll_public:_class_FSNODE____thiscall_FSN_DIRECTORY::GetNext_void____unsigned_long_int__]
mov esi, eax
test esi, esi
je 0x10018c5
lea ecx, [esi + 8]
call fcn.01001400
cmp dword [ebp - 8], 0
je 0x1001b4e
mov edi, eax
test edi, edi
je 0x1003e0b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001824
test dx, dx
je 0x1003e04
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001824
add eax, 4
add ecx, 4
test dx, dx
jne 0x10013c6
jmp 0x1003e04
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004e95
cmp dword [ebp - 8], 0
je 0x1001840
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x1b], 0
mov dword [ebp - 8], edi
je 0x10018c5
mov ecx, dword [ebp + 0x10]
push esi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::DoesNodeMatch_class_FSNODE__]
test al, al
je 0x10018af
cmp byte [ebx + 0xa8], 0
jne 0x1004ed2
lea ecx, [esi + 8]
call fcn.01001400
mov edi, eax
test edi, edi
je 0x1003e14
mov ecx, dword [ebp + 0xc]
push 0
push edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::AppendBase_class_WSTRING_const___unsigned_char_]
mov byte [ebp + 0x1b], al
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
cmp byte [ebp + 0x1b], 0
je 0x10018af
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0100193d
test al, al
je 0x1004ee4
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
test esi, esi
je 0x10018bb
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp byte [ebp + 0x1b], 0
jne 0x1001386
cmp dword [ebp - 8], 0
je 0x10018d4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x1b], 0
je 0x100515f
cmp byte [ebx + 0x9c], 0
jne 0x10018f3
cmp dword [ebp - 0x10], 0
je 0x10018f3
cmp dword [ebp - 0x10], 0x12
jne 0x1001900
cmp byte [ebx + 0x98], 0
jne 0x1004f25
cmp byte [ebp + 0x1b], 0
je 0x100515f
cmp byte [ebp - 1], 0
jne 0x1003c9e
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1001921
mov eax, dword [ecx]
push 1
call dword [eax]
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0x12
jne 0x100519f
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x14
mov dword [ebp - 8], eax
jmp 0x1001849
mov ecx, dword [ebp - 0xc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_DIRECTORY::IsEmpty_void_const]
test al, al
je 0x1001914
jmp 0x1005174
push edi
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.01003cf7
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1003cdf
cmp byte [ebx + 0xa7], 0
jne 0x1003cdf
mov ecx, dword [eax + 0x248]
or ecx, 0x20
push 0
push ecx
mov ecx, eax
call esi
cmp dword [ebp - 0xc], 0
mov byte [ebp - 1], 1
jne 0x1001360
jmp 0x1004e4c
mov edi, dword [ebp + 8]
add edi, 8
jne 0x1001350
jmp 0x1001342
xor eax, eax
jmp 0x1001829
mov byte [ebp + 0x1b], 0
jmp 0x1001831
mov byte [ebp + 0x1b], 0
jmp 0x10018af
mov eax, dword [ecx + 0x248]
shr eax, 0xa
test al, 1
je 0x100130f
cmp byte [ebp + 0x18], 0
je 0x1004e2f
mov eax, ecx
add eax, 8
push eax
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.01003cf7
mov esi, eax
test esi, esi
je 0x1004e27
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test esi, esi
setne al
jmp 0x1001931
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x218]
mov ecx, dword [ecx + 0x220]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x1001931
cmp byte [ebx + 0x9c], 0
je 0x1004e79
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
add ecx, 0x210
push ecx
push 0x100582c
push 1
push 0x5621
push ebx
call dword [eax + 8]
add esp, 0x14
jmp 0x100192f
mov eax, dword [ebp + 0xc]
push 4
add eax, 0x210
push eax
push 0x5621
mov ecx, ebx
call fcn.01001cb2
jmp 0x1001360
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
xor esi, esi
call dword [eax]
mov eax, dword [edi]
and dword [ebp - 8], esi
push 1
mov ecx, edi
call dword [eax]
xor edi, edi
cmp byte [ebx + 0x9c], 0
mov ecx, ebx
jne 0x1004f14
push 4
push edi
push 0x5643
call fcn.01001cb2
jmp 0x1001831
mov ecx, esi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSNODE::UseAlternateName_void_]
test al, al
jne 0x1001864
jmp 0x1004eff
test esi, esi
je 0x1004ef0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 4
xor esi, esi
call dword [sym.imp.ulib.dll_public:_static_void___stdcall_PROGRAM::ExitProgram_unsigned_long_int_]
jmp 0x10018a6
test esi, esi
je 0x1004f0b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov byte [ebp + 0x1b], 0
jmp 0x10018c5
mov eax, dword [ebx]
push 1
push 0x5643
call dword [eax + 0xc]
jmp 0x10018c5
and dword [ebp - 0x18], 0
cmp byte [ebp - 1], 0
mov byte [ebp + 0x1b], 1
je 0x1004f4a
mov ecx, dword [ebp - 0xc]
add ecx, 8
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
test eax, eax
mov dword [ebp - 0x14], eax
setne byte [ebp + 0x1b]
jmp 0x1004f4e
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
cmp byte [ebp + 0x1b], 0
je 0x1005147
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ulib.dll_public:_class_FSNODE____thiscall_FSN_DIRECTORY::GetNext_void____unsigned_long_int__]
mov esi, eax
test esi, esi
je 0x1005138
lea ecx, [esi + 8]
call fcn.01001400
cmp dword [ebp - 8], 0
je 0x1005026
mov edi, eax
test edi, edi
je 0x1005005
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
mov eax, dword [edi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004fbe
test dx, dx
je 0x1004fba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004fbe
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004f98
xor eax, eax
jmp 0x1004fc3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1005009
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
xor esi, esi
call dword [eax]
mov eax, dword [edi]
and dword [ebp - 8], esi
push 1
mov ecx, edi
call dword [eax]
xor edi, edi
cmp byte [ebx + 0x9c], 0
mov ecx, ebx
jne 0x100512c
push 4
push edi
push 0x5643
call fcn.01001cb2
jmp 0x1005009
mov byte [ebp + 0x1b], 0
cmp dword [ebp - 8], 0
je 0x1005018
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax]
cmp byte [ebp + 0x1b], 0
mov dword [ebp - 8], edi
jne 0x1005029
jmp 0x1005138
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
push esi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSN_FILTER::DoesNodeMatch_class_FSNODE__]
test al, al
je 0x1005103
cmp dword [ebx + 0xc4], 0
je 0x1005057
lea eax, [esi + 8]
push eax
mov ecx, ebx
call fcn.010065f3
test al, al
jne 0x1005103
cmp byte [ebp - 1], 0
je 0x1005091
lea ecx, [esi + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov edi, eax
test edi, edi
je 0x100511a
push dword [edi + 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
mov eax, dword [edi]
push 1
mov ecx, edi
jne 0x100508f
call dword [eax]
jmp 0x1005103
call dword [eax]
cmp byte [ebx + 0xa8], 0
je 0x10050a6
mov ecx, esi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_FSNODE::UseAlternateName_void_]
test al, al
je 0x100511a
lea ecx, [esi + 8]
call fcn.01001400
mov edi, eax
test edi, edi
je 0x10050ff
mov ecx, dword [ebp + 0xc]
push 0
push edi
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::AppendBase_class_WSTRING_const___unsigned_char_]
mov byte [ebp + 0x1b], al
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
cmp byte [ebx + 0x95], 0
sete al
cmp byte [ebp + 0x1b], 0
mov byte [ebx + 0xbc], al
je 0x1005103
push 1
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.010012e6
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.ulib.dll_public:_unsigned_char___thiscall_PATH::TruncateBase_void_]
jmp 0x1005103
mov byte [ebp + 0x1b], 0
test esi, esi
je 0x100510f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp byte [ebp + 0x1b], 0
je 0x1005138
jmp 0x1004f5c
test esi, esi
je 0x1005126
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov byte [ebp + 0x1b], 0
jmp 0x1005138
mov eax, dword [ebx]
push 1
push 0x5643
call dword [eax + 0xc]
cmp dword [ebp - 8], 0
je 0x1005147
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp - 0x14], 0
je 0x1001900
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x1001900
push 4
push 0
push 0x560f
mov ecx, ebx
call fcn.01001cb2
jmp 0x100190a
cmp byte [ebx + 0x95], 0
jne 0x1001914
cmp byte [ebx + 0xa5], 0
jne 0x1001914
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ulib.dll_public:_static_unsigned_char___stdcall_SYSTEM::RemoveNode_class_FSNODE____unsigned_char_]
jmp 0x1001925
cmp dword [ebp - 0x10], 0
je 0x100192f
xor eax, eax
cmp byte [ebx + 0x9c], al
sete al
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ulib.dll_public:_static_void___stdcall_SYSTEM::DisplaySystemError_unsigned_long_int__int_]
jmp 0x100192f