Function at 0x41b980
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x452fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4652b0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x1c]
call fcn.004072b0
mov dword [esp + 0x90], 0
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
test esi, esi
je 0x41ba17
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x41b9e5
cmp eax, ebp
je 0x41ba17
sub eax, 2
cmp word [eax], 0x5c
jne 0x41b9d8
sub eax, ebp
sar eax, 1
test eax, eax
jle 0x41ba17
lea ecx, [esi - 1]
cmp eax, ecx
jne 0x41ba17
cmp esi, 3
jne 0x41ba04
cmp word [ebp + 2], 0x3a
je 0x41bbc6
mov ecx, eax
lea edi, [esp + 0x1c]
call fcn.00413e80
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
lea edi, [esp + 0x1c]
lea eax, [esp + 0x28]
call fcn.00407310
mov byte [esp + 0x90], 1
mov dword [esp + 0x18], esi
cmp byte [0x568c61], 0
jne 0x41ba62
mov ebx, ebp
lea ecx, [esp + 0x34]
call fcn.00418030
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.0043f105
add esp, 4
test ebx, ebx
jmp 0x41ba6d
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41bc0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41bb78
test esi, esi
je 0x41bd0c
cmp word [ebp + esi*2 - 2], 0x5c
lea eax, [ebp + esi*2 - 2]
je 0x41baa9
cmp eax, ebp
je 0x41bd0c
sub eax, 2
cmp word [eax], 0x5c
jne 0x41ba98
sub eax, ebp
sar eax, 1
mov dword [esp + 0x18], eax
js 0x41bd0c
test eax, eax
je 0x41bd0c
cmp word [ebp + eax*2 - 2], 0x3a
je 0x41bd05
mov ecx, eax
lea esi, [esp + 0x40]
lea edx, [esp + 0x1c]
call fcn.00407450
mov edi, eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x90], 3
cmp edi, eax
je 0x41bb5a
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 0x41bb3e
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043d9cc
add esp, 4
cmp dword [esp + 0x24], 0
mov ebx, eax
jle 0x41bb2f
push ebp
call fcn.0043f105
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 0x41bb42
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ecx
mov byte [esp + 0x90], 1
mov edx, dword [esp + 0x40]
push edx
call fcn.0043f105
mov esi, dword [esp + 0x24]
add esp, 4
jmp 0x41ba30
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.00405cc0
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
mov byte [esp + 0x94], 2
call fcn.0041bf40
test al, al
jne 0x41bbd6
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0043f105
add esp, 4
mov edx, dword [esp + 0x28]
push edx
call fcn.0043f105
add esp, 4
push ebp
call fcn.0043f105
add esp, 4
mov al, 1
jmp 0x41bd24
mov eax, dword [esp + 0x6c]
shr eax, 4
test al, 1
jne 0x41bbf8
mov ecx, dword [esp + 0x74]
push ecx
call fcn.0043f105
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
jmp 0x41bd11
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x74]
push eax
call fcn.0043f105
add esp, 4
lea edi, [esp + 0x28]
lea eax, [esp + 0x1c]
call fcn.00407370
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
jge 0x41bbb9
jmp 0x41bc34
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 0x41bc5a
movzx ecx, cx
test cx, cx
je 0x41bc6e
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, 0x5c
jne 0x41bc48
sub eax, edx
sar eax, 1
test eax, eax
jl 0x41bc6e
lea edi, [eax + esi + 1]
mov dword [esp + 0x18], edi
test edi, edi
jge 0x41bc78
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.00407450
mov byte [esp + 0x90], 4
cmp byte [0x568c61], 0
mov ebx, dword [eax]
jne 0x41bcc5
lea ecx, [esp + 0x40]
call fcn.00418030
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.0043f105
add esp, 4
test esi, esi
je 0x41bcd6
mov al, 1
jmp 0x41bcd8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41bcd6
mov al, 1
jmp 0x41bcd8
xor al, al
test al, al
mov byte [esp + 0x90], 1
mov eax, dword [esp + 0x34]
push eax
sete bl
call fcn.0043f105
add esp, 4
test bl, bl
jne 0x41bd0c
cmp edi, dword [esp + 0x20]
jl 0x41bc30
jmp 0x41bbb9
mov eax, dword [esp + 0x28]
push eax
jmp 0x41bd11
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043f105
add esp, 4
push ebp
call fcn.0043f105
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