Function at 0x4911b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce724]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
cmp esi, ebx
je 0x4913e7
mov eax, esi
lea edx, [eax + 2]
jmp 0x4911e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4911e0
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x4913e7
cmp word [esi + 2], 0x3a
jne 0x4913e7
cmp word [esi + 4], 0x5c
lea eax, [esi + 4]
jne 0x4913e7
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x4c2790
push ebx
push str._:____
push eax
mov dword [ebp - 0x10], ebx
call fcn.0048f9b0
mov edi, dword [ebp - 0x10]
add esp, 0x1c
mov dword [ebp - 8], eax
test edi, edi
je 0x4913ee
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x491242
sub eax, edx
sar eax, 1
add eax, 2
mov dword [ebp - 0x1c], eax
lea eax, [eax + eax + 0xc]
cmp eax, 0x400
ja 0x491275
call fcn.0046d9c0
mov eax, esp
test eax, eax
je 0x49128b
mov dword [eax], 0xcccc
jmp 0x491288
push eax
call fcn.00468977
add esp, 4
test eax, eax
je 0x49128b
mov dword [eax], 0xdddd
add eax, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4913c6
push 2
push esi
push eax
mov dword [ebp - 0x18], ebx
call fcn.0046f5a8
add eax, 4
add esp, 0xc
xor edx, edx
mov ecx, edi
mov word [eax], dx
mov edx, ecx
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x4912b1
sub ecx, edx
lea edi, [eax - 4]
add edi, 0xfffffffe
mov esi, edx
mov edx, ecx
lea ebx, [edi + 2]
jmp 0x4912d0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4912d0
mov eax, dword [ebp - 0x1c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebx + eax*2 - 2], 0x5c
mov ebx, dword [ebp - 0xc]
je 0x491318
mov edi, ebx
mov dword [ebp - 0x18], 1
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x491304
mov ecx, dword [0x4c58f8]
mov dword [edi], ecx
lea edx, [ebx + 6]
push 0x5c
push edx
call fcn.0046aead
mov esi, eax
add esp, 8
test esi, esi
je 0x491385
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push eax
push ebx
mov word [esi], ax
call edi
test eax, eax
jne 0x491354
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp ecx, 0xb7
jne 0x491388
jmp 0x491357
mov ecx, dword [ebp - 8]
mov edx, 0x5c
mov word [esi], dx
lea eax, [esi + 2]
test ecx, ecx
jne 0x49136b
inc dword [ebp - 0x14]
jmp 0x491372
mov dword [ebp - 8], 0
push 0x5c
push eax
call fcn.0046aead
mov esi, eax
add esp, 8
test esi, esi
jne 0x491332
jmp 0x49138f
mov ecx, dword [ebp - 8]
test ecx, ecx
jne 0x4913cd
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x18], 0
je 0x4913ae
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call fcn.0046f5a8
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x4913cd
mov edx, dword [ebp + 8]
mov eax, ebx
sub edx, ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4913b5
jmp 0x4913cd
mov dword [ebp - 8], 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041a740
mov eax, dword [ebp - 0x10]
push eax
call fcn.00468a41
mov ebx, dword [ebp - 0x14]
add esp, 8
jmp 0x4913ee
mov dword [ebp - 8], 0xa1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4913fa
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, ebx
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467d4f
mov esp, ebp
pop ebp
ret