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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5fea5d
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x70b744]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x70b744]
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.0049a460
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00496020
push 0x6b2188
lea edi, [esp + 0x94]
mov ecx, ebx
call fcn.004854f0
xor edi, edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1a8], edi
call fcn.00495ef0
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x1ac], 1
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0x71dd1c
push 0x6b218c
mov ecx, ebx
call edx
test al, al
jne 0x496f58
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x7101e4
push str.BitLength
mov ecx, ebx
call edx
test al, al
je 0x496fd5
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.00496250
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1ac], 2
call fcn.00496340
lea ecx, [esp + 0xc4]
mov byte [esp + 0x1a8], 1
call fcn.0047f330
lea edx, [esp + 0x20]
lea eax, [esp + 0x7c]
call fcn.0047f410
test al, al
je 0x49703d
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.00410a89
lea ecx, [esp + 0xa4]
push ecx
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 4
call fcn.0047bb40
push 0x6dddc8
lea edx, [esp + 0x140]
push edx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.0052365b
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.00410a89
lea edx, [esp + 0xa4]
push edx
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 3
call fcn.0047bb40
push 0x6dddc8
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.0052365b
call fcn.0049a460
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00496020
push str.EquivalentTo
lea edi, [esp + 0xa8]
mov ecx, ebx
call fcn.004854f0
mov byte [esp + 0x1a8], 5
call fcn.0049a520
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00496020
push 0x6b21b4
lea edi, [esp + 0x68]
mov ecx, ebx
call fcn.004854f0
mov byte [esp + 0x1a8], 6
cmp dword [esp + 0xa0], 1
je 0x4977b1
mov edx, edi
lea eax, [esp + 0x90]
call fcn.0047f460
test al, al
jne 0x4977b1
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
push 0x71e29c
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 0x71dc8c
push str.Seed
mov ecx, ebx
call edx
test al, al
je 0x4972a9
push edi
lea ecx, [esp + 0x140]
call fcn.0049fbf0
lea eax, [esp + 0x13c]
push eax
lea esi, [esp + 0x16c]
mov byte [esp + 0x1ac], 0xc
call fcn.00480490
mov ecx, esi
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x1ac], 0xd
call fcn.00496a00
mov edx, esi
push edx
lea ecx, [esp + 0x24]
call fcn.00496a00
mov eax, esi
push eax
lea ecx, [esp + 0x94]
call fcn.00496a00
mov ecx, esi
push ecx
lea ecx, [esp + 0x54]
call fcn.00496a00
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.0049a6f0
add esp, 4
cmp byte [esp + 0x64], 0
je 0x4971a3
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
jmp 0x4971ab
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push eax
lea eax, [esp + 0x16c]
call fcn.0049ac90
add esp, 4
lea edi, [esp + 0x168]
call fcn.0049b5e0
mov eax, dword [esp + 0x150]
xor ecx, ecx
xor edx, edx
test eax, eax
je 0x4971e7
mov esi, dword [eax + 0x14]
sub esi, dword [eax + 0x10]
mov eax, dword [eax]
add ecx, esi
adc edx, 0
test eax, eax
jne 0x4971d6
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.0047dd90
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.004a0680
push 0x14
call fcn.0051d97d
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x1a8], 0xf
je 0x497247
push esi
push edi
mov esi, eax
call fcn.00496d60
mov esi, eax
jmp 0x497249
xor esi, esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x14], esi
call fcn.00486990
lea eax, [esp + 0x168]
push eax
mov byte [esp + 0x1ac], 0xc
call fcn.0049b550
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.0049fe60
test esi, esi
mov edi, esi
je 0x4972a5
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x1c]
jmp 0x4972b1
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x4975b5
sub eax, 1
je 0x497302
push str.Integer:_invalid_RandomNumberType_argument
lea ecx, [esp + 0x140]
call fcn.00410b44
lea edx, [esp + 0x13c]
push edx
lea ecx, [esp + 0x16c]
mov byte [esp + 0x1ac], 0x1b
call fcn.0047ba60
push 0x6dddc8
lea eax, [esp + 0x16c]
push eax
call fcn.0052365b
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x10]
push eax
push 0x71e2d0
push str.PointerToPrimeSelector
mov ecx, ebx
mov dword [esp + 0x1c], 0
call edx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0xc0], ebx
xor eax, eax
nop
add eax, 1
cmp eax, 0x10
mov dword [esp + 0x34], eax
jne 0x4973c3
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x40]
call fcn.00496020
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.004a8110
add esp, 0x14
test al, al
je 0x497560
lea edx, [esp + 0x3c]
push edx
mov ecx, esi
call fcn.00496340
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.004a8110
add esp, 0x14
test al, al
lea ecx, [esp + 0x3c]
je 0x497556
mov byte [esp + 0x1a8], 0xb
call fcn.0047f330
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
push ecx
push edx
push esi
lea ecx, [esp + 0x2c]
call fcn.00496c40
mov esi, dword [esp + 0x28]
test esi, esi
je 0x4973fa
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + esi*4 - 4]
cmp dword [eax], 0
jne 0x4974a4
sub esi, 1
sub eax, 4
test esi, esi
jne 0x4973e7
xor eax, eax
push eax
lea ecx, [esp + 0xdc]
call fcn.004960c0
lea edi, [esp + 0xd8]
lea eax, [esp + 0x50]
lea esi, [esp + 0xc4]
mov byte [esp + 0x1a8], 0x18
call fcn.0047f540
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0xec]
mov byte [esp + 0x1a8], 0x19
call fcn.0047f500
mov esi, eax
mov edx, esi
lea eax, [esp + 0x20]
mov byte [esp + 0x1a8], 0x1a
call fcn.0047f4b0
test al, al
je 0x49745d
lea esi, [esp + 0x20]
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x98]
push ecx
push esi
push edi
call fcn.004a8110
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.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4974c2
call fcn.0052568b
jmp 0x4974c7
test esi, esi
je 0x4973fa
lea eax, [ecx + esi*4 - 4]
call fcn.0047e280
add esi, 0xffffffff
shl esi, 5
add eax, esi
jmp 0x4973fc
call fcn.0051e45a
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.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x4974f7
call fcn.0052568b
jmp 0x4974fc
call fcn.0051e45a
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.00522720
add esp, 0xc
cmp esi, 0x10
push edi
jb 0x497532
call fcn.0052568b
jmp 0x497537
call fcn.0051e45a
add esp, 4
test bl, bl
jne 0x497591
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0x34]
jmp 0x497330
call fcn.0047f330
jmp 0x497764
lea ecx, [esp + 0x3c]
call fcn.0047f330
lea ecx, [esp + 0x64]
call fcn.00480270
test edi, edi
mov byte [esp + 0x1a8], 6
je 0x497683
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
jmp 0x497683
lea ecx, [esp + 0x64]
call fcn.00480270
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x497783
mov edx, dword [ecx]
jmp 0x49777d
call fcn.0049a520
mov edx, eax
lea eax, [esp + 0x50]
call fcn.0047f370
test al, al
je 0x4975e2
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x7c]
push ecx
push edx
push esi
lea ecx, [esp + 0x2c]
call fcn.00496c40
jmp 0x497764
lea eax, [esp + 0x7c]
lea edi, [esp + 0x90]
lea esi, [esp + 0x100]
call fcn.0047f520
mov ecx, eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x128]
mov byte [esp + 0x1a8], 0x10
call fcn.0047f580
lea edi, [esp + 0x7c]
lea esi, [esp + 0x3c]
mov byte [esp + 0x1a8], 0x11
call fcn.0047f500
lea ecx, [esp + 0x128]
call fcn.0047f330
lea ecx, [esp + 0x100]
mov byte [esp + 0x1a8], 0x14
call fcn.0047f330
mov edx, esi
lea eax, [esp + 0x20]
call fcn.0047f4b0
test al, al
je 0x4976d2
mov ecx, esi
call fcn.0047f330
lea ecx, [esp + 0x64]
call fcn.00480270
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x497683
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
lea ecx, [esp + 0x50]
call fcn.0047f330
lea ecx, [esp + 0x90]
call fcn.0047f330
lea ecx, [esp + 0x20]
call fcn.0047f330
lea ecx, [esp + 0x7c]
call fcn.0047f330
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.0051d721
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x3c]
lea edi, [esp + 0x20]
lea esi, [esp + 0xa4]
call fcn.0047f520
mov ecx, eax
lea eax, [esp + 0x50]
lea esi, [esp + 0x114]
mov byte [esp + 0x1a8], 0x15
call fcn.0047f560
mov edi, eax
mov byte [esp + 0x1a8], 0x16
call fcn.0049a460
mov esi, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push eax
push esi
mov ecx, edi
call fcn.00496c40
lea ecx, [esp + 0x114]
call fcn.0047f330
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1a8], 0x14
call fcn.0047f330
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.00489820
lea ecx, [esp + 0x3c]
push ecx
push esi
call fcn.00497de0
lea ecx, [esp + 0x3c]
call fcn.0047f330
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x64]
call fcn.00480270
test edi, edi
mov byte [esp + 0x1a8], 6
je 0x497783
mov edx, dword [edi]
mov ecx, edi
mov eax, dword [edx]
push 1
call eax
lea ecx, [esp + 0x50]
call fcn.0047f330
lea ecx, [esp + 0x90]
call fcn.0047f330
lea ecx, [esp + 0x20]
call fcn.0047f330
lea ecx, [esp + 0x7c]
call fcn.0047f330
mov al, 1
jmp 0x4976ac
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.00410a89
lea ecx, [esp + 0xa4]
push ecx
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 7
call fcn.0047bb40
push 0x6dddc8
lea edx, [esp + 0x140]
push edx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.0052365b
int3