Function at 0x4b27c0
Capabilities:
Create directory
Generate random numbers via winapi

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0xf4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b27d4
sub eax, esi
sar eax, 1
lea ecx, [edx + eax*2]
mov dword [esp + 0x10], ecx
cmp eax, 6
jb 0x4b2aa5
push 6
lea esi, [ecx - 0xc]
push str.XXXXXX
push esi
call fcn.004d0d63
add esp, 0xc
test eax, eax
jne 0x4b2aa5
push 0xf0000000
push 1
push eax
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4b2844
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [edi + 0xf0], eax
call fcn.004b8970
mov dword [edi + 0x48], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, bind
nop
lea eax, [esp + 0x18]
push eax
push 8
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4b2a5b
mov esi, dword [esp + 0x18]
push 0
push 0x3e
push dword [esp + 0x24]
push esi
call fcn.004c4180
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx - 0xc], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004c4180
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.004c4180
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx - 0xa], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004c4180
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.004c4180
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx - 8], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004c4180
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.004c4180
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx - 6], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004c4180
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.004c4180
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
mov ecx, dword [esp + 0x10]
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov word [ecx - 4], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004c4180
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.004c4180
mov ecx, eax
shl ecx, 5
sub ecx, eax
add ecx, ecx
sub esi, ecx
push 0
push 0x3e
movzx eax, word [esi*2 + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov esi, dword [esp + 0x18]
add esi, 0xfffffff4
mov word [esi + 0xa], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.004c4180
push dword [edi + 0xf4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.004cf4d1
add esp, 4
test eax, eax
je 0x4b2a30
call fcn.004ceb5c
cmp dword [eax], 0x11
jne 0x4b2a1a
sub ebx, 1
jne 0x4b2850
jmp 0x4b2a71
mov dword [edi + 0x48], 0xffffffff
call fcn.004ceb49
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
jmp 0x4b2a69
mov edx, dword [edi + 0x50]
mov ecx, edx
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b2a38
sub ecx, ebp
lea eax, [edx - 6]
push 6
add eax, ecx
push esi
push eax
call fcn.004d0cbc
add esp, 0xc
mov dword [edi + 0x48], 0
jmp 0x4b2a71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xf0], eax
mov ecx, eax
call fcn.004b8970
mov dword [edi + 0x48], eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x4b2ab6
mov dword [edi + 0x48], 0xffffffff
call fcn.004ceb49
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
call fcn.004b8970
mov dword [edi + 0x48], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov dword [edi + 0x48], 0xfffff019
mov dword [edi + 0xf0], 0x57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret