Function at 0x41c850
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483258
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4ad014]
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
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.004032e0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x41c8f1
lea ecx, [ebx - 1]
cmp word [edi + ecx*2], 0x5c
lea ecx, [edi + ecx*2]
je 0x41c8be
cmp ecx, edi
je 0x41c8f1
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x41c8b1
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x41c8f1
lea eax, [ebx - 1]
cmp ecx, eax
jne 0x41c8f1
cmp ebx, 3
jne 0x41c8e0
cmp word [edi + 2], 0x3a
jne 0x41c8e0
mov bl, 1
jmp 0x41cb1b
push 1
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00410c50
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.004039a0
mov edx, dword [ebp - 0x28]
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41c925
mov eax, ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov esi, ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ca66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41c9d9
test ebx, ebx
je 0x41cb42
lea esi, [ebx - 1]
cmp word [edi + esi*2], 0x5c
lea esi, [edi + esi*2]
je 0x41c987
cmp esi, edi
je 0x41cb42
sub esi, 2
cmp word [esi], 0x5c
jne 0x41c976
sub esi, edi
sar esi, 1
js 0x41cb42
test esi, esi
je 0x41cb42
cmp word [edi + esi*2 - 2], 0x3a
je 0x41cb42
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409d70
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004031e0
mov byte [ebp - 4], 1
push dword [ebp - 0x74]
call fcn.0045b660
mov ebx, dword [ebp - 0x18]
add esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x41c943
push 3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.004039a0
mov dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041cce0
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x41ca25
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x41ca3b
push dword [ebp - 0x3c]
mov bl, 1
call fcn.0045b660
add esp, 4
jmp 0x41cb10
mov eax, dword [ebp - 0x44]
shr eax, 4
test al, 1
jne 0x41ca57
push dword [ebp - 0x3c]
xor bl, bl
call fcn.0045b660
add esp, 4
jmp 0x41cb10
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0045b660
add esp, 4
mov ebx, dword [ebp - 0x68]
lea ecx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
push ebx
mov word [edi], ax
call fcn.004039a0
mov edi, dword [ebp - 0x1c]
mov edx, edi
mov ecx, dword [ebp - 0x28]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41ca90
mov dword [ebp - 0x18], ebx
cmp esi, ebx
jge 0x41cb0e
nop word [eax + eax]
lea esi, [esi + 1]
movzx eax, word [edi + esi*2]
lea esi, [edi + esi*2]
cmp eax, 0x5c
je 0x41cad1
nop
test ax, ax
je 0x41cad7
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x5c
jne 0x41cac0
sub esi, edi
sar esi, 1
jns 0x41cad9
mov esi, ebx
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409d70
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x74]
test eax, eax
setne bl
call fcn.0045b660
mov edi, dword [ebp - 0x1c]
add esp, 4
test bl, bl
je 0x41cb42
mov ebx, dword [ebp - 0x18]
cmp esi, ebx
jl 0x41cab0
mov bl, 1
push dword [ebp - 0x28]
call fcn.0045b660
add esp, 4
push edi
call fcn.0045b660
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.0045b64f
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41cb10