Function at 0x10050820
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083a44
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100bd024]
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
mov esi, ecx
mov ecx, 0x100c3578
call fcn.10071035
cmp dword [esi + 0x10], 0
jne 0x10050864
xor al, al
jmp 0x10050b13
mov ecx, esi
call fcn.10050590
test al, al
je 0x10050876
mov al, 1
jmp 0x10050b13
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10050880
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call ebx
test eax, eax
jne 0x1005090b
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100657b0
test al, al
je 0x100508ee
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x100508ee
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
jmp 0x10050904
mov dword [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10050590
test al, al
jne 0x1005086f
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10050a3b
nop word [eax + eax]
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x1005093c
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x1005095f
mov eax, esi
cmp ecx, 8
jb 0x10050955
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x10050a31
push edi
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10045570
mov dword [ebp - 4], 0xd
cmp dword [ebp - 0x30], 0
jne 0x10050995
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x40]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
jmp 0x10050a2a
lea ecx, [ebp - 0x40]
call fcn.10050390
test al, al
jne 0x10050a14
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x10050a14
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.100657b0
test al, al
je 0x10050ac4
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10050ac4
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xd
mov dword [ebp - 4], 0x23
lea ecx, [ebp - 0x40]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
inc edi
cmp edi, dword [ebp - 0x48]
jb 0x10050930
mov ecx, esi
call fcn.10050390
test al, al
jne 0x10050b0c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10050a54
mov eax, dword [esi]
push 0
push eax
call ebx
test eax, eax
jne 0x10050b0c
mov dword [ebp - 4], 0x27
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0x2a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0x2b
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100657b0
test al, al
je 0x10050aef
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10050aef
mov dword [ebp - 4], 0x2c
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
jmp 0x10050b05
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov byte [ebp - 4], 0xd
mov dword [ebp - 4], 0x1f
lea ecx, [ebp - 0x40]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
jmp 0x10050a2a
mov dword [ebp - 4], 0x30
lea ecx, [ebp - 0x28]
call fcn.10004d00
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10050590
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.1006efdc
mov esp, ebp
pop ebp
ret