Function at 0x41be50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51f608
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x595cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x54]
call fcn.004037b0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
test ebx, ebx
je 0x41bee2
lea ecx, [ebx - 1]
cmp word [edi + ecx*2], 0x5c
lea ecx, [edi + ecx*2]
je 0x41beaf
cmp ecx, edi
je 0x41bee2
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x41bea2
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x41bee2
lea eax, [ebx - 1]
cmp ecx, eax
jne 0x41bee2
cmp ebx, 3
jne 0x41bed1
cmp word [edi + 2], 0x3a
jne 0x41bed1
mov bl, 1
jmp 0x41c0f8
push 1
push ecx
lea ecx, [ebp - 0x54]
call fcn.004108b0
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call fcn.00403e70
mov edx, dword [ebp - 0x60]
mov ecx, edi
sub edx, edi
nop word [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41bf10
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 1
mov esi, ebx
nop dword [eax]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41c053
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41bfc6
test ebx, ebx
je 0x41c11f
lea esi, [ebx - 1]
cmp word [edi + esi*2], 0x5c
lea esi, [edi + esi*2]
je 0x41bf74
cmp esi, edi
je 0x41c11f
sub esi, 2
cmp word [esi], 0x5c
jne 0x41bf63
sub esi, edi
sar esi, 1
js 0x41c11f
test esi, esi
je 0x41c11f
cmp word [edi + esi*2 - 2], 0x3a
je 0x41c11f
push esi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
call fcn.00409d50
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.004036b0
mov byte [ebp - 4], 1
push dword [ebp - 0x70]
call fcn.004f4577
mov ebx, dword [ebp - 0x50]
add esp, 4
mov edi, dword [ebp - 0x54]
jmp 0x41bf30
push 3
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00403e70
mov dword [ebp - 0x64], 0xffffffff
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x64]
call fcn.0041c2a0
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x64]
cmp eax, 0xffffffff
je 0x41c012
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x41c028
push dword [ebp - 0x20]
mov bl, 1
call fcn.004f4577
add esp, 4
jmp 0x41c0ed
mov eax, dword [ebp - 0x28]
shr eax, 4
test al, 1
jne 0x41c044
push dword [ebp - 0x20]
xor bl, bl
call fcn.004f4577
add esp, 4
jmp 0x41c0ed
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.004f4577
add esp, 4
mov ebx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x50], 0
push ebx
mov word [edi], ax
call fcn.00403e70
mov edi, dword [ebp - 0x54]
mov edx, edi
mov ecx, dword [ebp - 0x60]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41c075
mov dword [ebp - 0x50], ebx
cmp esi, ebx
jge 0x41c0eb
nop dword [eax]
lea esi, [esi + 1]
movzx eax, word [edi + esi*2]
lea esi, [edi + esi*2]
cmp eax, 0x5c
je 0x41c0b1
nop
test ax, ax
je 0x41c0b7
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x5c
jne 0x41c0a0
sub esi, edi
sar esi, 1
jns 0x41c0b9
mov esi, ebx
push esi
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
call fcn.00409d50
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x70]
test eax, eax
setne bl
call fcn.004f4577
add esp, 4
test bl, bl
je 0x41c11f
mov ebx, dword [ebp - 0x5c]
cmp esi, ebx
jl 0x41c090
mov bl, 1
push dword [ebp - 0x60]
call fcn.004f4577
add esp, 4
push edi
call fcn.004f4577
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4566
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41c0ed