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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6701ad
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x70903c]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
push edi
mov eax, dword [0x70903c]
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 edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], eax
call fcn.004147b0
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040ea70
push 0x6b4090
lea esi, [esp + 0x80]
mov ecx, ebx
call fcn.00414c70
xor esi, esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1a8], esi
call fcn.0040e990
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x1ac], 1
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0x70d870
push 0x6b4094
mov ecx, ebx
call edx
test al, al
jne 0x40fe48
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x28]
push ecx
push 0x70dac0
push str.BitLength
mov ecx, ebx
call edx
test al, al
je 0x40fe7a
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.0040edd0
add esp, 8
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1ac], 2
call fcn.0040ee90
mov byte [esp + 0x1a8], 1
mov ecx, dword [esp + 0xcc]
mov edi, dword [esp + 0xd0]
mov edx, ecx
add edx, edx
mov esi, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x40fe73
call fcn.0063e513
mov edi, dword [esp + 0x28]
add esp, 4
mov esi, 1
cmp dword [esp + 0x78], esi
je 0x40fee2
cmp dword [esp + 0x3c], esi
je 0x40fefb
lea edx, [esp + 0x2c]
lea eax, [esp + 0x68]
call fcn.00411df0
jmp 0x40fef7
call fcn.00618e4e
jmp 0x40fe41
push 0x1d
push str.Integer:_missing_Max_argument
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], esi
mov byte [esp + 0xb4], 0
call fcn.00417040
lea eax, [esp + 0xa8]
push eax
push 1
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 3
call fcn.004176d0
push 0x6d946c
lea ecx, [esp + 0x140]
push ecx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.006143ad
cmp dword [esp + 0x3c], esi
jne 0x40ff66
lea edx, [esp + 0x2c]
lea eax, [esp + 0x68]
call fcn.00411df0
neg eax
test eax, eax
jle 0x40ff66
push 0x28
push 0x6b4064
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
call fcn.00417040
lea edx, [esp + 0xa8]
push edx
push esi
lea ecx, [esp + 0x144]
mov byte [esp + 0x1b0], 4
call fcn.004176d0
push 0x6d946c
lea eax, [esp + 0x140]
push eax
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.006143ad
call fcn.004147b0
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040ea70
push str.EquivalentTo
lea esi, [esp + 0xac]
mov ecx, ebx
call fcn.00414c70
mov byte [esp + 0x1a8], 5
call fcn.00414810
sub esp, 0x14
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
call fcn.0040ea70
push 0x6b40bc
lea esi, [esp + 0x6c]
mov ecx, ebx
call fcn.00414c70
mov esi, 1
mov byte [esp + 0x1a8], 6
cmp dword [esp + 0xa4], esi
je 0x4106ff
lea edx, [esp + 0x54]
lea eax, [esp + 0x94]
call fcn.00401490
test al, al
jne 0x4106ff
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 0x70d944
push str.RandomNumberType
mov ecx, ebx
mov dword [esp + 0x20], 0
call edx
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov byte [esp + 0x7c], al
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x1ac], 0xb
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0x70d914
push str.Seed
mov ecx, ebx
call edx
test al, al
je 0x4101ef
xor ecx, ecx
lea edi, [esp + 0x13c]
call fcn.004372d0
mov eax, edi
push eax
lea eax, [esp + 0x16c]
mov byte [esp + 0x1ac], 0xc
call fcn.004024d0
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x1ac], 0xd
call fcn.0040f770
lea edx, [esp + 0x168]
push edx
lea ecx, [esp + 0x30]
call fcn.0040f770
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x98]
call fcn.0040f770
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x58]
call fcn.0040f770
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x16c]
call fcn.00414d10
add esp, 4
cmp byte [esp + 0x7c], 0
je 0x4100f8
mov edi, dword [esp + 0x8c]
mov eax, dword [esp + 0x90]
jmp 0x410106
mov edi, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push eax
lea eax, [esp + 0x16c]
call fcn.00438130
add esp, 4
lea edi, [esp + 0x168]
call fcn.004384b0
lea ecx, [esp + 0x13c]
call fcn.00402290
push eax
lea ecx, [esp + 0x44]
call fcn.00413590
mov byte [esp + 0x1a8], 0xe
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x48]
push esi
push edi
lea ecx, [esp + 0x144]
call fcn.00437b20
push 0x14
call fcn.00613a23
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x1a8], 0xf
test eax, eax
je 0x41017d
push esi
push edi
mov esi, eax
call fcn.0040fc30
mov esi, eax
jmp 0x41017f
xor esi, esi
mov ecx, dword [esp + 0x44]
xor al, al
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
push eax
mov dword [esp + 0x20], esi
call fcn.00618e4e
add esp, 4
lea ecx, [esp + 0x168]
push ecx
mov byte [esp + 0x1ac], 0xc
call fcn.00438420
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 + 0x140], vtable.CryptoPP::ByteQueue.0
call fcn.004373e0
mov edi, dword [esp + 0x24]
test esi, esi
je 0x4101ea
mov dword [esp + 0x18], esi
mov esi, 1
jmp 0x4101f7
mov esi, 1
mov edx, dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x4104f0
sub eax, esi
je 0x410253
push str.Integer:_invalid_RandomNumberType_argument
lea ecx, [esp + 0x140]
call fcn.00417170
lea eax, [esp + 0x13c]
push eax
push esi
lea ecx, [esp + 0x170]
mov byte [esp + 0x1b0], 0x1b
call fcn.004176d0
push 0x6d946c
lea ecx, [esp + 0x16c]
push ecx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.006143ad
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x14]
push eax
push 0x70d978
push str.PointerToPrimeSelector
mov ecx, ebx
mov dword [esp + 0x20], 0
call edx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
xor eax, eax
lea ecx, [ecx]
add eax, esi
mov dword [esp + 0x20], eax
cmp eax, 0x10
jne 0x410312
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
call fcn.0040ea70
push ebx
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
push ecx
mov byte [esp + 0x1bc], 0x17
call fcn.0043b040
add esp, 0x14
test al, al
je 0x4104bd
lea edx, [esp + 0x40]
push edx
mov ecx, edi
call fcn.0040ee90
push ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0043b040
add esp, 0x14
lea ecx, [esp + 0x40]
test al, al
je 0x41048f
mov byte [esp + 0x1a8], 0xb
call fcn.00401380
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x68]
push ecx
push edx
push edi
lea ecx, [esp + 0x38]
call fcn.0040f9e0
lea eax, [esp + 0x2c]
call fcn.0043a4c0
push eax
lea ecx, [esp + 0xc8]
call fcn.0040eb60
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0xf4]
push edx
mov byte [esp + 0x1b4], 0x18
call fcn.00401590
add esp, 0xc
push eax
lea eax, [esp + 0xdc]
push edi
push eax
mov byte [esp + 0x1b4], 0x19
call fcn.00401530
add esp, 0xc
mov ebx, eax
mov byte [esp + 0x1a8], 0x1a
cmp dword [esp + 0x3c], esi
je 0x41039d
cmp dword [ebx + 0x10], esi
je 0x4103b7
mov edx, ebx
lea eax, [esp + 0x2c]
call fcn.00411df0
jmp 0x4103af
cmp dword [ebx + 0x10], esi
jne 0x4103b3
mov edx, ebx
lea eax, [esp + 0x2c]
call fcn.00411df0
neg eax
test eax, eax
jge 0x4103b7
lea ebx, [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x9c]
push eax
push ebx
push edi
call fcn.0043b040
mov ecx, dword [esp + 0xf4]
mov edi, dword [esp + 0xf8]
mov byte [esp + 0x27], al
xor eax, eax
mov edx, ecx
mov ebx, edi
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [edx*4]
push ebx
cmp ecx, 0x10
jb 0x410401
call fcn.0063e513
jmp 0x410406
call fcn.00618e4e
mov ecx, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
mov edx, ecx
add edx, edx
add esp, 4
mov ebx, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push ebx
cmp edx, 0x10
jb 0x410430
call fcn.0063e513
jmp 0x410435
call fcn.00618e4e
mov byte [esp + 0x1ac], 0xb
mov ebx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
xor eax, eax
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x41046a
call fcn.0063e513
jmp 0x41046f
call fcn.00618e4e
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x4104c6
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov esi, 1
jmp 0x410280
call fcn.00401380
lea ecx, [esp + 0x7c]
call fcn.00402430
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4106d1
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
jmp 0x4106d1
lea ecx, [esp + 0x40]
jmp 0x4105ab
lea ecx, [esp + 0x7c]
call fcn.00402430
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4106d1
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
jmp 0x4106d1
call fcn.00414810
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004013e0
add esp, 8
test al, al
je 0x410520
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.0040f9e0
jmp 0x4106b1
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x98]
push edx
lea eax, [esp + 0x108]
push eax
call fcn.00401560
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x130]
push edx
mov byte [esp + 0x1b4], 0x10
call fcn.004015f0
add esp, 0xc
push eax
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x48]
push ecx
mov byte [esp + 0x1b4], 0x11
call fcn.00401530
add esp, 0xc
lea ecx, [esp + 0x128]
call fcn.00401380
lea ecx, [esp + 0x100]
mov byte [esp + 0x1a8], 0x14
call fcn.00401380
lea edx, [esp + 0x40]
lea eax, [esp + 0x2c]
call fcn.004014e0
lea ecx, [esp + 0x40]
test al, al
je 0x41061f
call fcn.00401380
lea ecx, [esp + 0x7c]
call fcn.00402430
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4105d0
mov edx, dword [ecx]
mov eax, dword [edx]
push esi
call eax
lea ecx, [esp + 0x54]
call fcn.00401380
lea ecx, [esp + 0x94]
call fcn.00401380
lea ecx, [esp + 0x2c]
call fcn.00401380
lea ecx, [esp + 0x68]
call fcn.00401380
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.00613e6e
mov esp, ebp
pop ebp
ret 8
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.00401560
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x11c]
push edx
mov byte [esp + 0x1b4], 0x15
call fcn.004015c0
add esp, 0xc
mov ebx, eax
mov byte [esp + 0x1a8], 0x16
call fcn.004147b0
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
mov ecx, ebx
call fcn.0040f9e0
lea ecx, [esp + 0x114]
call fcn.00401380
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1a8], 0x14
call fcn.00401380
lea ecx, [esp + 0x54]
push ecx
mov ecx, edi
call fcn.00401180
lea edx, [esp + 0x40]
push edx
mov eax, edi
call fcn.00410d90
lea ecx, [esp + 0x40]
call fcn.00401380
lea ecx, [esp + 0x7c]
call fcn.00402430
mov byte [esp + 0x1a8], 6
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4106d1
mov eax, dword [ecx]
mov edx, dword [eax]
push esi
call edx
lea ecx, [esp + 0x54]
call fcn.00401380
lea ecx, [esp + 0x94]
call fcn.00401380
lea ecx, [esp + 0x2c]
call fcn.00401380
lea ecx, [esp + 0x68]
call fcn.00401380
mov al, 1
jmp 0x4105f9
push 0x31
push str.Integer:_invalid_EquivalentTo_and_or_Mod_argument
lea ecx, [esp + 0xb0]
mov dword [esp + 0xc8], 0xf
mov dword [esp + 0xc4], 0
mov byte [esp + 0xb4], 0
call fcn.00417040
lea eax, [esp + 0xa8]
push eax
push esi
lea ecx, [esp + 0x170]
mov byte [esp + 0x1b0], 7
call fcn.004176d0
push 0x6d946c
lea ecx, [esp + 0x16c]
push ecx
mov dword [esp + method.CryptoPP::Exception.virtual_0], vtable.CryptoPP::InvalidArgument.0
call fcn.006143ad
int3