Function at 0x41c930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4856e8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4b1014]
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 0x41c9d1
lea ecx, [ebx - 1]
cmp word [edi + ecx*2], 0x5c
lea ecx, [edi + ecx*2]
je 0x41c99e
cmp ecx, edi
je 0x41c9d1
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x41c991
sub ecx, edi
sar ecx, 1
test ecx, ecx
jle 0x41c9d1
lea eax, [ebx - 1]
cmp ecx, eax
jne 0x41c9d1
cmp ebx, 3
jne 0x41c9c0
cmp word [edi + 2], 0x3a
jne 0x41c9c0
mov bl, 1
jmp 0x41cbfb
push 1
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00410d40
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 0x41ca05
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 0x41cb46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41cab9
test ebx, ebx
je 0x41cc22
lea esi, [ebx - 1]
cmp word [edi + esi*2], 0x5c
lea esi, [edi + esi*2]
je 0x41ca67
cmp esi, edi
je 0x41cc22
sub esi, 2
cmp word [esi], 0x5c
jne 0x41ca56
sub esi, edi
sar esi, 1
js 0x41cc22
test esi, esi
je 0x41cc22
cmp word [edi + esi*2 - 2], 0x3a
je 0x41cc22
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.0045dac0
mov ebx, dword [ebp - 0x18]
add esp, 4
mov edi, dword [ebp - 0x1c]
jmp 0x41ca23
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.0041cdc0
mov bl, al
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
je 0x41cb05
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x41cb1b
push dword [ebp - 0x3c]
mov bl, 1
call fcn.0045dac0
add esp, 4
jmp 0x41cbf0
mov eax, dword [ebp - 0x44]
shr eax, 4
test al, 1
jne 0x41cb37
push dword [ebp - 0x3c]
xor bl, bl
call fcn.0045dac0
add esp, 4
jmp 0x41cbf0
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.0045dac0
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 0x41cb70
mov dword [ebp - 0x18], ebx
cmp esi, ebx
jge 0x41cbee
nop word [eax + eax]
lea esi, [esi + 1]
movzx eax, word [edi + esi*2]
lea esi, [edi + esi*2]
cmp eax, 0x5c
je 0x41cbb1
nop
test ax, ax
je 0x41cbb7
movzx eax, word [esi + 2]
add esi, 2
cmp eax, 0x5c
jne 0x41cba0
sub esi, edi
sar esi, 1
jns 0x41cbb9
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.0045dac0
mov edi, dword [ebp - 0x1c]
add esp, 4
test bl, bl
je 0x41cc22
mov ebx, dword [ebp - 0x18]
cmp esi, ebx
jl 0x41cb90
mov bl, 1
push dword [ebp - 0x28]
call fcn.0045dac0
add esp, 4
push edi
call fcn.0045dac0
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.0045daaf
mov esp, ebp
pop ebp
ret
xor bl, bl
jmp 0x41cbf0