Function at 0x41c920
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487008
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b3014]
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.00403300
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
test ebx, ebx
je 0x41c9c1
lea ecx, [ebx - 1]
cmp word [edi + ecx*2], 0x5c
lea ecx, [edi + ecx*2]
je 0x41c98e
cmp ecx, edi
je 0x41c9c1
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x41c981
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x41c9c1
lea eax, [ebx - 1]
cmp ecx, eax
jne 0x41c9c1
cmp ebx, 3
jne 0x41c9b0
cmp word [edi + 2], 0x3a
jne 0x41c9b0
mov bl, 1
jmp 0x41cbeb
push 1
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00410d20
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.004039c0
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 0x41c9f5
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 0x41cb36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41caa9
test ebx, ebx
je 0x41cc12
lea esi, [ebx - 1]
cmp word [edi + esi*2], 0x5c
lea esi, [edi + esi*2]
je 0x41ca57
cmp esi, edi
je 0x41cc12
sub esi, 2
cmp word [esi], 0x5c
jne 0x41ca46
sub esi, edi
sar esi, 1
js 0x41cc12
test esi, esi
je 0x41cc12
cmp word [edi + esi*2 - 2], 0x3a
je 0x41cc12
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409d90
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00403200
mov byte [ebp - 4], 1
push dword [ebp - 0x74]
call fcn.0045f430
mov ebx, dword [ebp - 0x18]
add esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x41ca13
push 3
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.004039c0
mov dword [ebp - 0x2c], 0xffffffff
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.0041cdb0
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x41caf5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x41cb0b
push dword [ebp - 0x3c]
mov bl, 1
call fcn.0045f430
add esp, 4
jmp 0x41cbe0
mov eax, dword [ebp - 0x44]
shr eax, 4
test al, 1
jne 0x41cb27
push dword [ebp - 0x3c]
xor bl, bl
call fcn.0045f430
add esp, 4
jmp 0x41cbe0
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0045f430
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.004039c0
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 0x41cb60
mov dword [ebp - 0x18], ebx
cmp esi, ebx
jge 0x41cbde
nop word [eax + eax]
lea esi, [esi + 1]
movzx eax, word [edi + esi*2]
lea esi, [edi + esi*2]
cmp eax, 0x5c
je 0x41cba1
nop
test ax, ax
je 0x41cba7
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x5c
jne 0x41cb90
sub esi, edi
sar esi, 1
jns 0x41cba9
mov esi, ebx
push esi
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409d90
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x74]
test eax, eax
setne bl
call fcn.0045f430
mov edi, dword [ebp - 0x1c]
add esp, 4
test bl, bl
je 0x41cc12
mov ebx, dword [ebp - 0x18]
cmp esi, ebx
jl 0x41cb80
mov bl, 1
push dword [ebp - 0x28]
call fcn.0045f430
add esp, 4
push edi
call fcn.0045f430
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.0045f41f
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41cbe0