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

Disassembly:
push 0x254
mov eax, 0x105e8e8
call fcn.0104dd12
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x258], eax
xor eax, eax
push 0x206
mov word [ebp - 0x23c], ax
xor ebx, ebx
lea eax, [ebp - 0x23a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x244], ebx
push 0x1066af4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.010442ec
mov eax, dword [esi]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], ebx
jne 0x1042365
push 0x125
lea ecx, [ebp - 0x244]
call fcn.01033530
movzx eax, al
cmp eax, ebx
jne 0x1042291
push 0x101085c
mov eax, 0x8007000e
push 0x1010844
push eax
mov dword [ebp - 0x240], eax
call fcn.01048c52
mov ecx, dword [ebp - 0x248]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0102fb3e
push dword [ebp - 0x244]
mov byte [ebp - 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x24c], 0
je 0x1042283
push 0
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x240]
call fcn.0104dd7d
ret 0xc
push 0x104
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
cmp eax, ebx
jne 0x10422e8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x10422bd
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x240], eax
jl 0x10422d1
mov dword [ebp - 0x240], 0x80004005
push 0x1010800
push 0x10107e8
call esi
push eax
call fcn.01048d15
jmp 0x104224b
xor eax, eax
mov word [ebp - 0x236], ax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x248]
call fcn.01030b1b
mov edi, dword [ebp - 0x248]
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, ebx
jne 0x10423d4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, ebx
jle 0x104233d
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x240], eax
jl 0x1042351
mov dword [ebp - 0x240], 0x80004005
push 0x10107a8
push 0x101078c
call esi
push eax
call fcn.01048d15
jmp 0x10423c9
push esi
lea ecx, [ebp - 0x248]
call fcn.01030ac4
push 0x5c
lea ecx, [ebp - 0x248]
call fcn.01030b8e
push 0x5c
lea ecx, [ebp - 0x248]
call fcn.01030944
mov edi, dword [ebp - 0x248]
mov eax, dword [edi - 0xc]
add eax, 0x21
push eax
lea ecx, [ebp - 0x244]
call fcn.01033530
movzx eax, al
cmp eax, ebx
jne 0x1042309
mov eax, 0x8007000e
push 0x101085c
mov dword [ebp - 0x240], eax
push 0x1010774
push eax
call fcn.01048c52
add esp, 0xc
lea ecx, [edi - 0x10]
jmp 0x1042257
lea eax, [ebp - 0x34]
push eax
push 0x10
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1042423
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1042400
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x240], eax
test eax, eax
jl 0x1042414
mov dword [ebp - 0x240], 0x80004005
push 0x1010730
push 0x1010718
jmp 0x104235b
push edi
push 0x1010710
push 0x104
push dword [ebp - 0x244]
call fcn.01041da4
add esp, 0x10
mov dword [ebp - 0x240], eax
test eax, eax
jge 0x1042455
push 0x10106b0
push 0x1010698
jmp 0x10423c3
movzx ebx, byte [ebp - 0x34]
and ebx, 7
add ebx, 9
xor esi, esi
cmp esi, ebx
jae 0x10424b0
movzx ecx, byte [ebp + esi - 0x34]
mov eax, dword [edi - 0xc]
push ecx
mov ecx, 0x82
sub ecx, esi
add ecx, ecx
sub ecx, eax
push 0x101068c
push ecx
mov ecx, dword [ebp - 0x244]
lea eax, [eax + esi*2]
lea eax, [ecx + eax*2]
push eax
call fcn.01041da4
add esp, 0x10
mov dword [ebp - 0x240], eax
test eax, eax
jge 0x10424ad
push 0x1010630
push 0x1010614
jmp 0x10423c3
inc esi
jmp 0x1042461
push dword [ebp - 0x258]
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1042505
mov dword [ebp - 0x254], 1
inc dword [ebp - 0x250]
cmp dword [ebp - 0x254], 0
jne 0x10424ef
cmp dword [ebp - 0x250], 0x2710
jb 0x10423d4
push dword [ebp - 0x244]
mov ecx, dword [ebp - 0x25c]
call fcn.01031359
jmp 0x10423cc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x10424d0
call esi
test eax, eax
jle 0x1042524
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x240], eax
test eax, eax
jl 0x1042538
mov dword [ebp - 0x240], 0x80004005
push dword [ebp - 0x244]
push 0x10105c8
push 0x10105b0
call esi
push eax
call fcn.01048d15
add esp, 0x10
jmp 0x10423cc