Function at 0x402a08
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x94
mov eax, dword [0x441438]
xor eax, ebp
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x68]
and dword [ebp - 0x24], 0
push ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x78]
push edi
mov edi, dword [ebp + 0x70]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x7c]
mov ebx, ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
call fcn.00402c80
mov ebx, dword [ebx]
test ebx, ebx
mov ecx, eax
mov dword [ebp + 0x10], ecx
jne 0x402a65
test ecx, ecx
je 0x402a5b
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x80004005
jmp 0x402bd3
mov eax, dword [ebp + 0x6c]
cmp eax, 0x48
jae 0x402a81
test ecx, ecx
je 0x402a77
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x8000ffff
jmp 0x402bd3
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
cmp edx, 0x48
jb 0x402a6d
add edx, 0xffffffb8
test esi, esi
mov dword [ebp - 0x2c], edx
je 0x402acd
push dword [ebp - 0x34]
lea ecx, [ebp - 0x2c]
push ecx
add eax, 0xffffffb8
add edi, 0x48
push edi
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x48
push eax
call esi
test eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
jl 0x402ad7
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x48
cmp dword [ebp - 0x2c], eax
jbe 0x402ad1
mov dword [ebp - 0x24], 0x8000ffff
jmp 0x402ad1
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x24], 0
jge 0x402ae9
test ecx, ecx
je 0x402ae1
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x24]
jmp 0x402bd3
lea eax, [ebx + 0x7c]
push 0x44494c
push eax
mov dword [ebp - 0x20], eax
call fcn.0040279f
test al, al
je 0x402b36
mov esi, dword [ebp - 0x28]
push 0x12
pop ecx
lea eax, [ebp + 0x10]
push eax
push 0x444810
lea edi, [ebp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402537
lea eax, [ebp + 0x10]
push eax
add ebx, 4
push ebx
push eax
call fcn.004028be
mov edi, dword [ebp - 0x30]
push 0x12
pop ecx
lea esi, [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x402bc4
call fcn.00402c80
mov esi, dword [ebp - 0x28]
push 0x12
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x10]
push eax
push 0x444810
lea edi, [ebp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402537
push 0x4446c8
lea eax, [ebp + 0x10]
push eax
call fcn.004027e7
test al, al
je 0x402b7f
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x402b77
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 0x10]
jmp 0x402a6d
lea eax, [ebp - 0x1c]
push eax
push 0x444a10
lea eax, [ebx + 4]
push eax
call fcn.004025b6
mov eax, dword [ebp - 0x30]
push 0xa
pop ecx
mov edi, eax
add eax, 0x28
push eax
lea esi, [ebp - 0x18]
push 0x20
rep movsd dword es:[edi], dword [esi]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push dword [ebp - 0x20]
push dword [ebp - 0x20]
call fcn.004024cc
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x402bc4
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x402bd1
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp + 0x5c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040349a
add ebp, 0x60
leave
ret 0x18