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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60d140
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x72d630]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x72d630]
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.004d0f70
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004cc3a0
push 0x6db208
lea edx, [esp + 0x80]
mov dword [esp + 0x1c0], 0
push edx
mov ecx, ebx
mov dword [esp + 0x1c4], 0xffffffff
call fcn.004d14b0
mov esi, 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x1a8], esi
call fcn.004cc2c0
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x1ac], 2
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0x73dbb4
push 0x6db20c
mov ecx, ebx
call edx
test al, al
jne 0x4cd95d
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x1c]
push ecx
push 0x73e180
push str.BitLength
mov ecx, ebx
call edx
test al, al
je 0x4cd978
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0xa8]
push eax
call fcn.004cc6d0
add esp, 4
lea ecx, [esp + 0x28]
push ecx
mov edi, eax
mov byte [esp + 0x1ac], 3
call fcn.004cc780
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1a8], 2
call fcn.004ad940
cmp dword [esp + 0x78], esi
je 0x4cd9b9
cmp dword [esp + 0x38], esi
je 0x4cd9d2
lea edx, [esp + 0x28]
lea eax, [esp + 0x68]
call fcn.004cf320
jmp 0x4cd9ce
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.004ac970
push 0x7038dc
lea ecx, [esp + 0x140]
push ecx
call sub.MSVCR90.dll__CxxThrowException
cmp dword [esp + 0x38], esi
jne 0x4cda13
lea edx, [esp + 0x28]
lea eax, [esp + 0x68]
call fcn.004cf320
neg eax
test eax, eax
jle 0x4cda13
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.004ac970
push 0x7038dc
lea ecx, [esp + 0x140]
push ecx
call sub.MSVCR90.dll__CxxThrowException
call fcn.004d0f70
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004cc3a0
push str.EquivalentTo
lea edx, [esp + 0x94]
mov byte [esp + 0x1c0], 6
push edx
mov ecx, ebx
mov byte [esp + 0x1c4], 2
call fcn.004d14b0
mov byte [esp + 0x1a8], 7
call fcn.004d1020
sub esp, 0x14
mov edi, esp
mov dword [esp + 0x30], esp
push eax
call fcn.004cc3a0
push 0x6db234
lea eax, [esp + 0x6c]
mov byte [esp + 0x1c0], 8
push eax
mov ecx, ebx
mov byte [esp + 0x1c4], 7
call fcn.004d14b0
mov byte [esp + 0x1a8], 9
cmp dword [esp + 0x8c], esi
je 0x4ce182
lea edx, [esp + 0x54]
lea eax, [esp + 0x7c]
call fcn.004ada20
test al, al
jne 0x4ce182
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 0x73ebf8
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.004bfa20
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1ac], 0xc
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0x73ebc8
push str.Seed
mov ecx, ebx
call edx
test al, al
je 0x4cdcc8
xor ecx, ecx
lea esi, [esp + 0x13c]
call fcn.004bc280
mov eax, esi
push eax
lea eax, [esp + 0x16c]
mov byte [esp + 0x1ac], 0xd
call fcn.004bd270
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1ac], 0xe
call fcn.004ccf40
lea edx, [esp + 0x168]
push edx
lea ecx, [esp + 0x2c]
call fcn.004ccf40
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x80]
call fcn.004ccf40
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x58]
call fcn.004ccf40
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x16c]
call fcn.004d1540
add esp, 4
cmp byte [esp + 0x90], 0
je 0x4cdbb6
mov edi, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
jmp 0x4cdbc4
mov edi, dword [esp + 0x98]
mov eax, dword [esp + 0x94]
push eax
lea eax, [esp + 0x16c]
call fcn.004bd490
add esp, 4
lea edi, [esp + 0x168]
call fcn.004bdfa0
mov eax, dword [esp + 0x150]
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x4cdc01
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 0x4cdbf0
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.004b1080
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.004bcd80
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 0x4cdc5f
push esi
push edi
push eax
call fcn.004cd6f0
mov esi, eax
jmp 0x4cdc61
xor esi, esi
mov byte [esp + 0x1a8], 0xf
lea eax, [esp + 0x40]
mov dword [esp + 0x18], esi
mov byte [esp + 0x1a8], 0xe
call fcn.004b10b0
lea ecx, [esp + 0x168]
push ecx
mov byte [esp + 0x1ac], 0xd
call fcn.004bdf10
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.004bc4e0
test esi, esi
je 0x4cdcc8
mov dword [esp + 0x1c], esi
jmp 0x4cdcd2
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov esi, eax
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x4cdf00
sub eax, 1
je 0x4cdd25
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.004ac970
push 0x7038dc
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 0x73ec2c
push str.PointerToPrimeSelector
mov ecx, ebx
mov dword [esp + 0x20], 0
call edx
mov esi, dword [esp + 0x14]
xor eax, eax
jmp 0x4cdd50
inc eax
mov dword [esp + 0x3c], eax
cmp eax, 0x10
jne 0x4cddd7
lea eax, [esp + 0x68]
push eax
lea edi, [esp + 0x44]
call fcn.004cc3a0
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.004ed070
add esp, 0x14
test al, al
je 0x4cdee2
mov ebx, dword [esp + 0x24]
push ebx
call fcn.004cc780
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.004ed070
add esp, 0x14
mov byte [esp + 0x1a8], 0xc
mov ecx, edi
test al, al
je 0x4ce102
call fcn.004ad940
jmp 0x4cdddb
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.004cd270
lea eax, [esp + 0x28]
call fcn.004ec830
push eax
lea edi, [esp + 0xac]
call fcn.004cc430
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0xf0]
push eax
mov byte [esp + 0x1b0], 0x1a
call fcn.004adb80
push eax
lea ecx, [esp + 0x134]
push ecx
mov edi, ebx
mov byte [esp + 0x1b8], 0x1b
call fcn.004adac0
add esp, 0x10
mov edi, eax
mov eax, 1
mov byte [esp + 0x1a8], 0x1c
cmp dword [esp + 0x38], eax
je 0x4cde61
cmp dword [edi + 0x10], eax
je 0x4cde7b
mov edx, edi
lea eax, [esp + 0x28]
call fcn.004cf320
jmp 0x4cde73
cmp dword [edi + 0x10], eax
jne 0x4cde77
mov edx, edi
lea eax, [esp + 0x28]
call fcn.004cf320
neg eax
test eax, eax
jge 0x4cde7b
lea edi, [esp + 0x28]
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x84]
push eax
push edi
push ebx
call fcn.004ed070
add esp, 0x14
lea ecx, [esp + 0x128]
mov bl, al
mov byte [esp + 0x1a8], 0x1b
call fcn.004ad940
lea ecx, [esp + 0xec]
mov byte [esp + 0x1a8], 0x1a
call fcn.004ad940
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1a8], 0xc
call fcn.004ad940
test bl, bl
jne 0x4ce107
mov eax, dword [esp + 0x3c]
jmp 0x4cdd50
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 0xc
call fcn.004ad940
lea ecx, [esp + 0x90]
push ecx
jmp 0x4cdfd5
call fcn.004d1020
mov edx, eax
lea eax, [esp + 0x54]
call fcn.004ad9d0
test al, al
je 0x4cdf2d
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x68]
push ecx
push esi
push edx
lea ecx, [esp + 0x34]
call fcn.004cd270
jmp 0x4ce107
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xdc]
push ecx
lea edi, [esp + 0x84]
call fcn.004adb20
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x10c]
push ecx
mov ecx, eax
mov byte [esp + 0x1b8], 0x12
call fcn.004adc40
push eax
lea edx, [esp + 0x54]
push edx
lea edi, [esp + 0x80]
mov byte [esp + 0x1c0], 0x13
call fcn.004adac0
add esp, 0x18
lea ecx, [esp + 0x100]
mov byte [esp + 0x1a8], 0x15
call fcn.004ad940
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1a8], 0x16
call fcn.004ad940
lea edx, [esp + 0x40]
lea eax, [esp + 0x28]
call fcn.004ada70
lea ecx, [esp + 0x40]
test al, al
je 0x4ce069
mov byte [esp + 0x1a8], 0xc
call fcn.004ad940
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x1ac], 0xb
call fcn.004bfb60
mov byte [esp + 0x1a8], 9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4cdffa
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 7
call fcn.004ad940
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.004ad940
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a8], 1
call fcn.004ad940
lea ecx, [esp + 0x68]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004ad940
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.005e038a
mov esp, ebp
pop ebp
ret 8
push ecx
lea edx, [esp + 0xc0]
push edx
lea edi, [esp + 0x30]
call fcn.004adb20
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.004adbe0
add esp, 0x10
mov edi, eax
mov byte [esp + 0x1a8], 0x18
call fcn.004d0f70
push eax
push esi
mov esi, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.004cd270
lea ecx, [esp + 0x114]
mov byte [esp + 0x1a8], bl
call fcn.004ad940
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1a8], 0x16
call fcn.004ad940
lea edx, [esp + 0x54]
mov ecx, esi
call fcn.004befa0
lea eax, [esp + 0x40]
push eax
mov eax, esi
call fcn.004ce750
mov byte [esp + 0x1a8], 0xc
lea ecx, [esp + 0x40]
call fcn.004ad940
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x1ac], 0xb
call fcn.004bfb60
mov byte [esp + 0x1a8], 9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4ce134
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1a8], 7
call fcn.004ad940
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.004ad940
lea ecx, [esp + 0x28]
mov byte [esp + 0x1a8], 1
call fcn.004ad940
lea ecx, [esp + 0x68]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004ad940
mov al, 1
jmp 0x4ce043
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.004ac970
push 0x7038dc
lea eax, [esp + 0x16c]
push eax
call sub.MSVCR90.dll__CxxThrowException
int3