Function at 0x402fde
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x94
mov eax, dword [0x44647c]
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.00403256
mov ebx, dword [ebx]
test ebx, ebx
mov ecx, eax
mov dword [ebp + 0x10], ecx
jne 0x40303b
test ecx, ecx
je 0x403031
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x80004005
jmp 0x4031a9
mov eax, dword [ebp + 0x6c]
cmp eax, 0x48
jae 0x403057
test ecx, ecx
je 0x40304d
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, 0x8000ffff
jmp 0x4031a9
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
cmp edx, 0x48
jb 0x403043
add edx, 0xffffffb8
test esi, esi
mov dword [ebp - 0x2c], edx
je 0x4030a3
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 0x4030ad
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
sub eax, 0x48
cmp dword [ebp - 0x2c], eax
jbe 0x4030a7
mov dword [ebp - 0x24], 0x8000ffff
jmp 0x4030a7
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x24], 0
jge 0x4030bf
test ecx, ecx
je 0x4030b7
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x24]
jmp 0x4031a9
lea eax, [ebx + 0x7c]
push 0x449c8c
push eax
mov dword [ebp - 0x20], eax
call fcn.00402d75
test al, al
je 0x40310c
mov esi, dword [ebp - 0x28]
push 0x12
pop ecx
lea eax, [ebp + 0x10]
push eax
push 0x449b50
lea edi, [ebp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402b0d
lea eax, [ebp + 0x10]
push eax
add ebx, 4
push ebx
push eax
call fcn.00402e94
mov edi, dword [ebp - 0x30]
push 0x12
pop ecx
lea esi, [ebp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x40319a
call fcn.00403256
mov esi, dword [ebp - 0x28]
push 0x12
pop ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x10]
push eax
push 0x449b50
lea edi, [ebp + 0x14]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402b0d
push 0x449a08
lea eax, [ebp + 0x10]
push eax
call fcn.00402dbd
test al, al
je 0x403155
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40314d
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 0x10]
jmp 0x403043
lea eax, [ebp - 0x1c]
push eax
push 0x449d50
lea eax, [ebx + 4]
push eax
call fcn.00402b8c
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.00402aa2
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40319a
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4031a7
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.00403a70
add ebp, 0x60
leave
ret 0x18