Function at 0x402b63
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x441438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x84], 0
push ebx
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1c]
mov ebx, ecx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x94], eax
call fcn.00402e1c
mov ebx, dword [ebx]
mov ecx, eax
mov dword [ebp - 0x50], ecx
test ebx, ebx
jne 0x402bcc
test ecx, ecx
je 0x402bc2
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x80004005
jmp 0x402d64
mov eax, dword [ebp + 0xc]
cmp eax, 0x48
jae 0x402be8
test ecx, ecx
je 0x402bde
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x8000ffff
jmp 0x402d64
mov edx, dword [ebp - 0x80]
mov edx, dword [edx]
cmp edx, 0x48
jb 0x402bd4
add edx, 0xffffffb8
mov dword [ebp - 0x8c], edx
test esi, esi
je 0x402c49
push dword [ebp - 0x94]
lea ecx, [ebp - 0x8c]
push ecx
add eax, 0xffffffb8
add edi, 0x48
push edi
push eax
mov eax, dword [ebp - 0x88]
add eax, 0x48
push eax
call esi
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
test eax, eax
jl 0x402c59
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
sub eax, 0x48
cmp dword [ebp - 0x8c], eax
jbe 0x402c50
mov dword [ebp - 0x84], 0x8000ffff
jmp 0x402c50
and dword [ebp - 0x8c], 0
cmp dword [ebp - 0x84], 0
jge 0x402c6e
test ecx, ecx
je 0x402c63
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x84]
jmp 0x402d64
lea eax, [ebx + 0x7c]
push 0x44274c
push eax
mov dword [ebp - 0x80], eax
call fcn.004028d1
test al, al
je 0x402cc1
mov esi, dword [ebp - 0x88]
push 0x12
pop ecx
lea eax, [ebp - 0x50]
push eax
push 0x442610
lea edi, [ebp - 0x4c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040264f
lea eax, [ebp - 0x50]
push eax
add ebx, 4
push ebx
push eax
call fcn.00402a1a
mov edi, dword [ebp - 0x90]
push 0x12
pop ecx
lea esi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
jmp 0x402d55
call fcn.00402e1c
mov esi, dword [ebp - 0x88]
push 0x12
pop ecx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x50]
push eax
push 0x442610
lea edi, [ebp - 0x4c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.0040264f
push 0x4424c8
lea eax, [ebp - 0x50]
push eax
call fcn.0040291d
test al, al
je 0x402d0d
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x402d05
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x50]
jmp 0x402bd4
lea eax, [ebp - 0x7c]
push eax
push 0x442810
lea eax, [ebx + 4]
push eax
call fcn.004026d0
mov eax, dword [ebp - 0x90]
push 0xa
pop ecx
mov edi, eax
add eax, 0x28
push eax
lea esi, [ebp - 0x78]
push 0x20
rep movsd dword es:[edi], dword [esi]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push dword [ebp - 0x80]
push dword [ebp - 0x80]
call fcn.004025e2
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x402d55
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0x50]
test ecx, ecx
je 0x402d62
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004036a2
leave
ret 0x18