Function at 0x41b9b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cd38
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x574be0]
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.00402570
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
test ebx, ebx
je 0x41ba42
lea ecx, [ebx - 1]
cmp word [edi + ecx*2], 0x5c
lea ecx, [edi + ecx*2]
je 0x41ba0f
cmp ecx, edi
je 0x41ba42
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x41ba02
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x41ba42
lea eax, [ebx - 1]
cmp ecx, eax
jne 0x41ba42
cmp ebx, 3
jne 0x41ba31
cmp word [edi + 2], 0x3a
jne 0x41ba31
mov bl, 1
jmp 0x41bca8
push 1
push ecx
lea ecx, [ebp - 0x54]
call fcn.0040f740
mov ebx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
lea eax, [ebx + 1]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x41ba67
push eax
lea ecx, [ebp - 0x64]
call fcn.004031d0
mov edx, dword [ebp - 0x64]
mov ecx, edi
sub edx, edi
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41ba70
mov dword [ebp - 0x60], ebx
mov byte [ebp - 4], 1
mov esi, ebx
jmp 0x41ba90
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41bc28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41bb9b
test ebx, ebx
je 0x41bccf
lea esi, [ebx - 1]
cmp word [edi + esi*2], 0x5c
lea esi, [edi + esi*2]
je 0x41bad8
cmp esi, edi
je 0x41bccf
sub esi, 2
cmp word [esi], 0x5c
jne 0x41bac7
sub esi, edi
sar esi, 1
js 0x41bccf
test esi, esi
je 0x41bccf
cmp word [edi + esi*2 - 2], 0x3a
je 0x41bccf
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408dc0
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
cmp eax, ecx
je 0x41bb87
xor ecx, ecx
mov word [edi], cx
mov ebx, dword [eax + 4]
inc ebx
mov dword [ebp - 0x50], 0
cmp ebx, dword [ebp - 0x4c]
je 0x41bb61
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ea353
add esp, 4
cmp dword [ebp - 0x4c], 0
mov dword [ebp - 0x58], eax
jle 0x41bb54
push edi
call fcn.004ea2dd
mov eax, dword [ebp - 0x58]
add esp, 4
mov edi, eax
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov word [eax], cx
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x68]
mov edx, edi
mov ecx, dword [ebx]
jmp 0x41bb70
movzx eax, word [ecx]
mov word [edx], ax
lea edx, [edx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x41bb70
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x74]
call fcn.004ea2dd
add esp, 4
jmp 0x41ba90
push 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004031d0
mov dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x48]
push eax
push edi
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0041be20
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x58]
cmp eax, 0xffffffff
je 0x41bbe7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x41bbfd
push dword [ebp - 0x20]
mov bl, 1
call fcn.004ea2dd
add esp, 4
jmp 0x41bc9d
mov eax, dword [ebp - 0x28]
shr eax, 4
test al, 1
jne 0x41bc19
push dword [ebp - 0x20]
xor bl, bl
call fcn.004ea2dd
add esp, 4
jmp 0x41bc9d
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call fcn.004ea2dd
add esp, 4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
call fcn.00402690
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x54]
cmp esi, ecx
jge 0x41bc9b
mov edi, edi
lea esi, [esi + 1]
movzx eax, word [edi + esi*2]
lea esi, [edi + esi*2]
cmp eax, 0x5c
je 0x41bc61
nop
test ax, ax
je 0x41bc67
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x5c
jne 0x41bc50
sub esi, edi
sar esi, 1
jns 0x41bc69
mov esi, ecx
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408dc0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x74]
test eax, eax
setne bl
call fcn.004ea2dd
add esp, 4
test bl, bl
je 0x41bccf
mov ecx, dword [ebp - 0x50]
cmp esi, ecx
jl 0x41bc40
mov bl, 1
push dword [ebp - 0x64]
call fcn.004ea2dd
add esp, 4
push edi
call fcn.004ea2dd
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.004e9eea
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41bc9d