Function at 0x4f17b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5701f0
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x660038]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
call fcn.004f4e90
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004f0290
push 0x61e6f0
lea edx, [esp + 0x80]
mov dword [esp + 0x1c0], 0
push edx
mov ecx, ebx
mov dword [esp + 0x1c4], 0xffffffff
call fcn.004f53d0
mov esi, 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x1a8], esi
call fcn.004f01b0
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x1ac], 2
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0x673b1c
push 0x61e6f4
mov ecx, ebx
call edx
test al, al
jne 0x4f18cd
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push 0x6740e8
push str.BitLength
mov ecx, ebx
call edx
test al, al
je 0x4f18e8
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xa8]
push eax
call fcn.004f05c0
add esp, 4
lea ecx, [esp + 0x28]
push ecx
mov edi, eax
mov byte [esp + 0x1ac], 3
call fcn.004f0670
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1a8], 2
call fcn.004d1a40
cmp dword [esp + 0x78], esi
je 0x4f1929
cmp dword [esp + 0x38], esi
je 0x4f1942
lea edx, [esp + 0x28]
lea eax, [esp + 0x68]
call fcn.004f3290
jmp 0x4f193e
push str.Integer:_missing_Max_argument
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x140]
push eax
mov byte [esp + 0x1b0], 4
call fcn.004d0ac0
push 0x636100
lea ecx, [esp + 0x140]
push ecx
call sub.MSVCR90.dll__CxxThrowException
cmp dword [esp + 0x38], esi
jne 0x4f1983
lea edx, [esp + 0x28]
lea eax, [esp + 0x68]
call fcn.004f3290
neg eax
test eax, eax
jle 0x4f1983
push str.Integer:_Min_must_be_no_greater_than_Max
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x140]
push eax
mov byte [esp + 0x1b0], 5
call fcn.004d0ac0
push 0x636100
lea ecx, [esp + 0x140]
push ecx
call sub.MSVCR90.dll__CxxThrowException
call fcn.004f4e90
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004f0290
push str.EquivalentTo
lea edx, [esp + 0x94]
mov byte [esp + 0x1c0], 6
push edx
mov ecx, ebx
mov byte [esp + 0x1c4], 2
call fcn.004f53d0
mov byte [esp + 0x1a8], 7
call fcn.004f4f40
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004f0290
push 0x61e71c
lea eax, [esp + 0x6c]
mov byte [esp + 0x1c0], 8
push eax
mov ecx, ebx
mov byte [esp + 0x1c4], 7
call fcn.004f53d0
mov byte [esp + 0x1a8], 9
cmp dword [esp + 0x8c], esi
je 0x4f20f2
lea edx, [esp + 0x54]
lea eax, [esp + 0x7c]
call fcn.004d1b20
test al, al
jne 0x4f20f2
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 0x674b60
xor esi, esi
push str.RandomNumberType
mov ecx, ebx
mov dword [esp + 0x20], esi
call edx
mov dword [esp + 0x18], esi
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1ac], 0xb
call fcn.004e3950
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1ac], 0xc
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0x674b30
push str.Seed
mov ecx, ebx
call edx
test al, al
je 0x4f1c38
xor ecx, ecx
lea esi, [esp + 0x13c]
call fcn.004e0180
mov eax, esi
push eax
lea eax, [esp + 0x16c]
mov byte [esp + 0x1ac], 0xd
call fcn.004e1180
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1ac], 0xe
call fcn.004f0e30
lea edx, [esp + 0x168]
push edx
lea ecx, [esp + 0x2c]
call fcn.004f0e30
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x80]
call fcn.004f0e30
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x58]
call fcn.004f0e30
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x16c]
call fcn.004f5460
add esp, 4
cmp byte [esp + 0x90], 0
je 0x4f1b26
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
jmp 0x4f1b34
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
push eax
lea eax, [esp + 0x16c]
call fcn.004e13c0
add esp, 4
lea edi, [esp + 0x168]
call fcn.004e1eb0
mov eax, dword [esp + 0x150]
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x4f1b71
nop
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0x10]
mov eax, dword [eax]
add ecx, esi
adc edx, 0
test eax, eax
jne 0x4f1b60
mov edi, dword [esp + 0x15c]
xor eax, eax
add edi, ecx
adc eax, edx
lea esi, [esp + 0x40]
mov dword [esp + 0x20], eax
call fcn.004d5200
mov byte [esp + 0x1a8], 0xf
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
push esi
push edi
lea ecx, [esp + 0x144]
call fcn.004e07d0
push 0x14
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1a8], 0x10
test eax, eax
je 0x4f1bcf
push esi
push edi
push eax
call fcn.004f1660
mov esi, eax
jmp 0x4f1bd1
xor esi, esi
mov byte [esp + 0x1a8], 0xf
lea eax, [esp + 0x40]
mov dword [esp + 0x18], esi
mov byte [esp + 0x1a8], 0xe
call fcn.004d5230
lea ecx, [esp + 0x168]
push ecx
mov byte [esp + 0x1ac], 0xd
call fcn.004e1e20
lea edx, [esp + 0x13c]
mov byte [esp + 0x1a8], 0xc
push edx
mov dword [esp + method.CryptoPP::ByteQueue.virtual_0], vtable.CryptoPP::ByteQueue.0
mov dword [esp + method.CryptoPP::BitBucket.1.virtual_0], vtable.CryptoPP::ByteQueue.1.0
call fcn.004e03e0
test esi, esi
je 0x4f1c38
mov dword [esp + 0x1c], esi
jmp 0x4f1c42
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov esi, eax
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x4f1e70
sub eax, 1
je 0x4f1c95
push str.Integer:_invalid_RandomNumberType_argument
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x16c]
push edx
mov byte [esp + 0x1b0], 0x1d
call fcn.004d0ac0
push 0x636100
lea eax, [esp + 0x16c]
push eax
call sub.MSVCR90.dll__CxxThrowException
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 0x674b94
push str.PointerToPrimeSelector
mov ecx, ebx
mov dword [esp + 0x20], 0
call edx
mov esi, dword [esp + 0x14]
xor eax, eax
jmp 0x4f1cc0
inc eax
mov dword [esp + 0x3c], eax
cmp eax, 0x10
jne 0x4f1d47
lea eax, [esp + 0x68]
push eax
lea edi, [esp + 0x44]
call fcn.004f0290
push esi
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, edi
push ecx
mov byte [esp + 0x1bc], 0x19
call fcn.00510f10
add esp, 0x14
test al, al
je 0x4f1e52
mov ebx, dword [esp + 0x24]
push ebx
call fcn.004f0670
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x34]
push ecx
mov edx, edi
push edx
call fcn.00510f10
add esp, 0x14
mov byte [esp + 0x1a8], 0xc
mov ecx, edi
test al, al
je 0x4f2072
call fcn.004d1a40
jmp 0x4f1d4b
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x68]
push eax
push ecx
push ebx
lea ecx, [esp + 0x34]
call fcn.004f1160
lea eax, [esp + 0x28]
call fcn.005106d0
push eax
lea edi, [esp + 0xac]
call fcn.004f0320
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xf0]
push eax
mov byte [esp + 0x1b0], 0x1a
call fcn.004d1c80
push eax
lea ecx, [esp + 0x134]
push ecx
mov edi, ebx
mov byte [esp + 0x1b8], 0x1b
call fcn.004d1bc0
add esp, 0x10
mov edi, eax
mov eax, 1
mov byte [esp + 0x1a8], 0x1c
cmp dword [esp + 0x38], eax
je 0x4f1dd1
cmp dword [edi + 0x10], eax
je 0x4f1deb
mov edx, edi
lea eax, [esp + 0x28]
call fcn.004f3290
jmp 0x4f1de3
cmp dword [edi + 0x10], eax
jne 0x4f1de7
mov edx, edi
lea eax, [esp + 0x28]
call fcn.004f3290
neg eax
test eax, eax
jge 0x4f1deb
lea edi, [esp + 0x28]
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x84]
push eax
push edi
push ebx
call fcn.00510f10
add esp, 0x14
lea ecx, [esp + 0x128]
mov bl, al
mov byte [esp + 0x1a8], 0x1b
call fcn.004d1a40
lea ecx, [esp + 0xec]
mov byte [esp + 0x1a8], 0x1a
call fcn.004d1a40
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1a8], 0xc
call fcn.004d1a40
test bl, bl
jne 0x4f2077
mov eax, dword [esp + 0x3c]
jmp 0x4f1cc0
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 0xc
call fcn.004d1a40
lea ecx, [esp + 0x90]
push ecx
jmp 0x4f1f45
call fcn.004f4f40
mov edx, eax
lea eax, [esp + 0x54]
call fcn.004d1ad0
test al, al
je 0x4f1e9d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x68]
push ecx
push esi
push edx
lea ecx, [esp + 0x34]
call fcn.004f1160
jmp 0x4f2077
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xdc]
push ecx
lea edi, [esp + 0x84]
call fcn.004d1c20
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x10c]
push ecx
mov ecx, eax
mov byte [esp + 0x1b8], 0x12
call fcn.004d1d40
push eax
lea edx, [esp + 0x54]
push edx
lea edi, [esp + 0x80]
mov byte [esp + 0x1c0], 0x13
call fcn.004d1bc0
add esp, 0x18
lea ecx, [esp + 0x100]
mov byte [esp + 0x1a8], 0x15
call fcn.004d1a40
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1a8], 0x16
call fcn.004d1a40
lea edx, [esp + 0x40]
lea eax, [esp + 0x28]
call fcn.004d1b70
lea ecx, [esp + 0x40]
test al, al
je 0x4f1fd9
mov byte [esp + 0x1a8], 0xc
call fcn.004d1a40
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1ac], 0xb
call fcn.004e3a90
mov byte [esp + 0x1a8], 9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4f1f6a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 7
call fcn.004d1a40
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.004d1a40
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a8], 1
call fcn.004d1a40
lea ecx, [esp + 0x68]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004d1a40
xor al, al
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.0054904e
mov esp, ebp
pop ebp
ret 8
push ecx
lea edx, [esp + 0xc0]
push edx
lea edi, [esp + 0x30]
call fcn.004d1c20
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x120]
mov bl, 0x17
push edx
mov ecx, eax
mov byte [esp + 0x1b8], bl
call fcn.004d1ce0
add esp, 0x10
mov edi, eax
mov byte [esp + 0x1a8], 0x18
call fcn.004f4e90
push eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.004f1160
lea ecx, [esp + 0x114]
mov byte [esp + 0x1a8], bl
call fcn.004d1a40
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1a8], 0x16
call fcn.004d1a40
lea edx, [esp + 0x54]
mov ecx, esi
call fcn.004e2ec0
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.004f26c0
mov byte [esp + 0x1a8], 0xc
lea ecx, [esp + 0x40]
call fcn.004d1a40
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x1ac], 0xb
call fcn.004e3a90
mov byte [esp + 0x1a8], 9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4f20a4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 7
call fcn.004d1a40
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.004d1a40
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a8], 1
call fcn.004d1a40
lea ecx, [esp + 0x68]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004d1a40
mov al, 1
jmp 0x4f1fb3
push str.Integer:_invalid_EquivalentTo_and_or_Mod_argument
lea ecx, [esp + 0x140]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x16c]
push edx
mov byte [esp + 0x1b0], 0xa
call fcn.004d0ac0
push 0x636100
lea eax, [esp + 0x16c]
push eax
call sub.MSVCR90.dll__CxxThrowException
int3