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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5df92d
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x6dd9a4]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x6dd9a4]
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 esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
call fcn.0048ca50
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004885e0
push 0x68f134
lea edi, [esp + 0x94]
mov ecx, ebx
call fcn.00478660
xor edi, edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1a8], edi
call fcn.004884b0
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x1ac], 1
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0x6e6bbc
push 0x68f138
mov ecx, ebx
call edx
test al, al
jne 0x489518
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x6e102c
push str.BitLength
mov ecx, ebx
call edx
test al, al
je 0x489595
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00488810
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ac], 2
call fcn.00488900
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1a8], 1
call fcn.004728a0
lea edx, [esp + 0x20]
lea eax, [esp + 0x7c]
call fcn.00472980
test al, al
je 0x4895fd
push 0x28
push str.Integer:_Min_must_be_no_greater_than_Max
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], edi
mov byte [esp + 0xb0], 0
call fcn.0041072d
lea ecx, [esp + 0xa4]
push ecx
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 4
call fcn.0046f080
push 0x6b2680
lea edx, [esp + 0x140]
push edx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.00518c50
push 0x1d
push str.Integer:_missing_Max_argument
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], edi
mov byte [esp + 0xb0], 0
call fcn.0041072d
lea edx, [esp + 0xa4]
push edx
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 3
call fcn.0046f080
push 0x6b2680
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.00518c50
call fcn.0048ca50
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004885e0
push str.EquivalentTo
lea edi, [esp + 0xa8]
mov ecx, ebx
call fcn.00478660
mov byte [esp + 0x1a8], 5
call fcn.0048cb10
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.004885e0
push 0x68f160
lea edi, [esp + 0x68]
mov ecx, ebx
call fcn.00478660
mov byte [esp + 0x1a8], 6
cmp dword [esp + 0xa0], 1
je 0x489d76
mov edx, edi
lea eax, [esp + 0x90]
call fcn.004729d0
test al, al
jne 0x489d76
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x6e7304
xor edi, edi
push str.RandomNumberType
mov ecx, ebx
mov dword [esp + 0x1c], edi
call edx
mov dword [esp + 0x14], edi
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov byte [esp + 0x64], al
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x1ac], 0xb
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0x6e6b2c
push str.Seed
mov ecx, ebx
call edx
test al, al
je 0x489869
push edi
lea ecx, [esp + 0x140]
call fcn.004921a0
lea eax, [esp + 0x13c]
push eax
lea esi, [esp + 0x16c]
mov byte [esp + 0x1ac], 0xc
call fcn.004739c0
mov ecx, esi
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x1ac], 0xd
call fcn.00488fc0
mov edx, esi
push edx
lea ecx, [esp + 0x24]
call fcn.00488fc0
mov eax, esi
push eax
lea ecx, [esp + 0x94]
call fcn.00488fc0
mov ecx, esi
push ecx
lea ecx, [esp + 0x54]
call fcn.00488fc0
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.0048cce0
add esp, 4
cmp byte [esp + 0x64], 0
je 0x489763
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
jmp 0x48976b
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push eax
lea eax, [esp + 0x16c]
call fcn.0048d280
add esp, 4
lea edi, [esp + 0x168]
call fcn.0048dbd0
mov eax, dword [esp + 0x150]
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x4897a7
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0x10]
mov eax, dword [eax]
add ecx, esi
adc edx, 0
test eax, eax
jne 0x489796
mov eax, dword [esp + 0x15c]
xor esi, esi
add eax, ecx
adc esi, edx
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x3c], esi
call fcn.004712c0
mov byte [esp + 0x1a8], 0xe
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
push esi
push edi
lea ecx, [esp + 0x144]
call fcn.00492c30
push 0x14
call fcn.00511d1d
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x1a8], 0xf
je 0x489807
push esi
push edi
mov esi, eax
call fcn.00489320
mov esi, eax
jmp 0x489809
xor esi, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
call fcn.00479b00
lea eax, [esp + 0x168]
push eax
mov byte [esp + 0x1ac], 0xc
call fcn.0048db40
mov byte [esp + 0x1a8], 0xb
lea eax, [esp + 0x13c]
mov dword [esp + method.CryptoPP::ByteQueue.1.virtual_0], vtable.CryptoPP::ByteQueue.1.0
mov dword [esp + method.CryptoPP::ByteQueue.virtual_0], vtable.CryptoPP::ByteQueue.0
call fcn.00492410
test esi, esi
mov edi, esi
je 0x489865
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x1c]
jmp 0x489871
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x489b7e
sub eax, 1
je 0x4898c2
push str.Integer:_invalid_RandomNumberType_argument
lea ecx, [esp + 0x140]
call fcn.004107e8
lea edx, [esp + 0x13c]
push edx
lea ecx, [esp + 0x16c]
mov byte [esp + 0x1ac], 0x1b
call fcn.0046efa0
push 0x6b2680
lea eax, [esp + 0x16c]
push eax
call fcn.00518c50
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x10]
push eax
push 0x6e7338
push str.PointerToPrimeSelector
mov ecx, ebx
mov dword [esp + 0x1c], 0
call edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
xor eax, eax
lea esp, [esp]
add eax, 1
cmp eax, 0x10
mov dword [esp + 0xc0], eax
jne 0x489986
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x40]
call fcn.004885e0
push ebx
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x1bc], 0x17
call fcn.0049a670
add esp, 0x14
test al, al
je 0x489b29
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00488900
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0049a670
add esp, 0x14
test al, al
lea ecx, [esp + 0x3c]
je 0x489b1f
mov byte [esp + 0x1a8], 0xb
call fcn.004728a0
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
push ecx
push edx
push esi
lea ecx, [esp + 0x2c]
call fcn.00489200
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4899c3
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + esi*4 - 4]
lea ebx, [ebx]
cmp dword [eax], 0
jne 0x489a6d
sub esi, 1
sub eax, 4
test esi, esi
jne 0x4899b0
xor eax, eax
push eax
lea ecx, [esp + 0xdc]
call fcn.00488680
lea edi, [esp + 0xd8]
lea eax, [esp + 0x50]
lea esi, [esp + 0xc4]
mov byte [esp + 0x1a8], 0x18
call fcn.00472ab0
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0xec]
mov byte [esp + 0x1a8], 0x19
call fcn.00472a70
mov esi, eax
mov edx, esi
lea eax, [esp + 0x20]
mov byte [esp + 0x1a8], 0x1a
call fcn.00472a20
test al, al
je 0x489a26
lea esi, [esp + 0x20]
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x98]
push ecx
push esi
push edi
call fcn.0049a670
mov esi, dword [esp + 0x108]
add esp, 0x14
add esi, esi
add esi, esi
push esi
mov bl, al
mov eax, dword [esp + 0xfc]
push 0
push eax
mov edi, eax
call fcn.00516720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x489a8b
call fcn.00519006
jmp 0x489a90
test esi, esi
je 0x4899c3
lea eax, [ecx + esi*4 - 4]
call fcn.004717b0
add esi, 0xffffffff
shl esi, 5
add eax, esi
jmp 0x4899c5
call fcn.005118c1
mov esi, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push eax
mov edi, eax
call fcn.00516720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x489ac0
call fcn.00519006
jmp 0x489ac5
call fcn.005118c1
mov byte [esp + 0x1ac], 0xb
mov esi, dword [esp + 0xe4]
mov edi, dword [esp + 0xe8]
add esp, 4
add esi, esi
add esi, esi
push esi
push 0
push edi
call fcn.00516720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x489afb
call fcn.00519006
jmp 0x489b00
call fcn.005118c1
add esp, 4
test bl, bl
jne 0x489b5a
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0xc0]
mov ebx, dword [esp + 0x34]
jmp 0x4898f0
call fcn.004728a0
jmp 0x489d29
lea ecx, [esp + 0x3c]
call fcn.004728a0
lea ecx, [esp + 0x64]
call fcn.004737c0
test edi, edi
mov byte [esp + 0x1a8], 6
je 0x489c48
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x489c48
lea ecx, [esp + 0x64]
call fcn.004737c0
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x489d48
mov edx, dword [ecx]
jmp 0x489d42
call fcn.0048cb10
mov edx, eax
lea eax, [esp + 0x50]
call fcn.004728e0
test al, al
je 0x489bab
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
push ecx
push edx
push esi
lea ecx, [esp + 0x2c]
call fcn.00489200
jmp 0x489d29
lea eax, [esp + 0x7c]
lea edi, [esp + 0x90]
lea esi, [esp + 0x100]
call fcn.00472a90
mov ecx, eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x128]
mov byte [esp + 0x1a8], 0x10
call fcn.00472af0
lea edi, [esp + 0x7c]
lea esi, [esp + 0x3c]
mov byte [esp + 0x1a8], 0x11
call fcn.00472a70
lea ecx, [esp + 0x128]
call fcn.004728a0
lea ecx, [esp + 0x100]
mov byte [esp + 0x1a8], 0x14
call fcn.004728a0
mov edx, esi
lea eax, [esp + 0x20]
call fcn.00472a20
test al, al
je 0x489c97
mov ecx, esi
call fcn.004728a0
lea ecx, [esp + 0x64]
call fcn.004737c0
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x489c48
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0x50]
call fcn.004728a0
lea ecx, [esp + 0x90]
call fcn.004728a0
lea ecx, [esp + 0x20]
call fcn.004728a0
lea ecx, [esp + 0x7c]
call fcn.004728a0
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.005112a7
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x3c]
lea edi, [esp + 0x20]
lea esi, [esp + 0xa4]
call fcn.00472a90
mov ecx, eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x114]
mov byte [esp + 0x1a8], 0x15
call fcn.00472ad0
mov edi, eax
mov byte [esp + 0x1a8], 0x16
call fcn.0048ca50
mov esi, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.00489200
lea ecx, [esp + 0x114]
call fcn.004728a0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1a8], 0x14
call fcn.004728a0
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.0047bde0
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.0048a3b0
lea ecx, [esp + 0x3c]
call fcn.004728a0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x64]
call fcn.004737c0
test edi, edi
mov byte [esp + 0x1a8], 6
je 0x489d48
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x50]
call fcn.004728a0
lea ecx, [esp + 0x90]
call fcn.004728a0
lea ecx, [esp + 0x20]
call fcn.004728a0
lea ecx, [esp + 0x7c]
call fcn.004728a0
mov al, 1
jmp 0x489c71
push 0x31
push str.Integer:_invalid_EquivalentTo_and_or_Mod_argument
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.0041072d
lea ecx, [esp + 0xa4]
push ecx
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 7
call fcn.0046f080
push 0x6b2680
lea edx, [esp + 0x140]
push edx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.00518c50
int3