Function at 0x41ad70
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44caa8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45d2b0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x1c]
call fcn.004066c0
mov dword [esp + 0x90], 0
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
test esi, esi
je 0x41ae07
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x41add5
cmp eax, ebp
je 0x41ae07
sub eax, 2
cmp word [eax], 0x5c
jne 0x41adc8
sub eax, ebp
sar eax, 1
test eax, eax
jle 0x41ae07
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x41ae07
cmp esi, 3
jne 0x41adf4
cmp word [ebp + 2], 0x3a
je 0x41afb6
mov ecx, eax
lea edi, [esp + 0x1c]
call fcn.004132a0
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x1c]
lea eax, [esp + 0x28]
call fcn.00406720
mov byte [esp + 0x90], 1
mov dword [esp + 0x18], esi
cmp byte [0x560ba1], 0
jne 0x41ae52
mov ebx, ebp
lea ecx, [esp + 0x34]
call fcn.00417440
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x34]
push edx
mov ebx, eax
call fcn.00438e02
add esp, 4
test ebx, ebx
jmp 0x41ae5d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41affd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41af68
test esi, esi
je 0x41b0fc
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x41ae99
cmp eax, ebp
je 0x41b0fc
sub eax, 2
cmp word [eax], 0x5c
jne 0x41ae88
sub eax, ebp
sar eax, 1
mov dword [esp + 0x18], eax
js 0x41b0fc
test eax, eax
je 0x41b0fc
cmp word [ebp + eax*2 - 2], 0x3a
je 0x41b0f5
mov ecx, eax
lea esi, [esp + 0x40]
lea edx, [esp + 0x1c]
call fcn.00406850
mov edi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x90], 3
cmp edi, eax
je 0x41af4a
xor ecx, ecx
mov word [ebp], cx
mov esi, dword [edi + 4]
inc esi
mov dword [esp + 0x20], 0
cmp esi, dword [esp + 0x24]
je 0x41af2e
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004376db
add esp, 4
cmp dword [esp + 0x24], 0
mov ebx, eax
jle 0x41af1f
push ebp
call fcn.00438e02
add esp, 4
mov ebp, ebx
xor eax, eax
mov dword [esp + 0x1c], ebp
mov word [ebx], ax
mov dword [esp + 0x24], esi
mov edx, dword [edi]
mov ecx, ebp
movzx eax, word [edx]
mov word [ecx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x41af32
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x90], 1
mov edx, dword [esp + 0x40]
push edx
call fcn.00438e02
mov esi, dword [esp + 0x24]
add esp, 4
jmp 0x41ae20
xor eax, eax
push 4
lea esi, [esp + 0x78]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
call fcn.004050d0
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
mov byte [esp + 0x94], 2
call fcn.0041b330
test al, al
jne 0x41afc6
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00438e02
add esp, 4
mov edx, dword [esp + 0x28]
push edx
call fcn.00438e02
add esp, 4
push ebp
call fcn.00438e02
add esp, 4
mov al, 1
jmp 0x41b114
mov eax, dword [esp + 0x6c]
shr eax, 4
test al, 1
jne 0x41afe8
mov ecx, dword [esp + 0x74]
push ecx
call fcn.00438e02
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
jmp 0x41b101
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x74]
push eax
call fcn.00438e02
add esp, 4
lea edi, [esp + 0x28]
lea eax, [esp + 0x1c]
call fcn.00406770
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
jge 0x41afa9
jmp 0x41b024
mov esi, dword [esp + 0x18]
movzx ecx, word [ebp + esi*2 + 2]
lea edx, [ebp + esi*2 + 2]
mov eax, edx
cmp cx, 0x5c
je 0x41b04a
movzx ecx, cx
test cx, cx
je 0x41b05e
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x41b038
sub eax, edx
sar eax, 1
test eax, eax
jl 0x41b05e
lea edi, [eax + esi + 1]
mov dword [esp + 0x18], edi
test edi, edi
jge 0x41b068
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov edi, ecx
mov ecx, edi
lea esi, [esp + 0x34]
lea edx, [esp + 0x1c]
call fcn.00406850
mov byte [esp + 0x90], 4
cmp byte [0x560ba1], 0
mov ebx, dword [eax]
jne 0x41b0b5
lea ecx, [esp + 0x40]
call fcn.00417440
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [esp + 0x40]
push edx
mov esi, eax
call fcn.00438e02
add esp, 4
test esi, esi
je 0x41b0c6
mov al, 1
jmp 0x41b0c8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41b0c6
mov al, 1
jmp 0x41b0c8
xor al, al
test al, al
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x34]
push eax
sete bl
call fcn.00438e02
add esp, 4
test bl, bl
jne 0x41b0fc
cmp edi, dword [esp + 0x20]
jl 0x41b020
jmp 0x41afa9
mov eax, dword [esp + 0x28]
push eax
jmp 0x41b101
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00438e02
add esp, 4
push ebp
call fcn.00438e02
add esp, 4
xor al, al
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret