Function at 0x47c600
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 0x47c614
sub eax, esi
sar eax, 1
cmp eax, 6
jb 0x47c8e1
add edx, 0xfffffff4
push 6
push str.XXXXXX
lea esi, [edx + eax*2]
push esi
mov dword [esp + 0x1c], esi
call fcn.004ab684
add esp, 0xc
test eax, eax
jne 0x47c8e1
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 0x47c684
call dword [0x4eb0cc]
mov ecx, eax
mov dword [edi + 0xf0], eax
call fcn.004822d0
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 0x47c897
mov esi, dword [esp + 0x18]
push 0
push 0x3e
push dword [esp + 0x24]
push esi
call fcn.00488430
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], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00488430
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.00488430
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 + 2], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00488430
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.00488430
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.00488430
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.00488430
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.00488430
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.00488430
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.00488430
push 0
push 0x3e
mov esi, eax
mov dword [esp + 0x24], edx
push edx
push esi
mov dword [esp + 0x28], esi
call fcn.00488430
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]
mov word [esi + 0xa], ax
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.00488430
push dword [edi + 0xf4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call fcn.004a9e74
add esp, 4
test eax, eax
je 0x47c86c
call fcn.004a905f
cmp dword [eax], 0x11
jne 0x47c856
sub ebx, 1
jne 0x47c690
jmp 0x47c8ad
mov dword [edi + 0x48], 0xffffffff
call fcn.004a904c
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
jmp 0x47c8a5
mov edx, dword [edi + 0x50]
mov ecx, edx
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c874
sub ecx, ebp
lea eax, [edx - 6]
push 6
add eax, ecx
push esi
push eax
call fcn.004ab5dd
add esp, 0xc
mov dword [edi + 0x48], 0
jmp 0x47c8ad
call dword [0x4eb0cc]
mov dword [edi + 0xf0], eax
mov ecx, eax
call fcn.004822d0
mov dword [edi + 0x48], eax
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
jne 0x47c8f2
mov dword [edi + 0x48], 0xffffffff
call fcn.004a904c
mov ecx, dword [eax]
mov dword [edi + 0xf0], ecx
call fcn.004822d0
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