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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10074e5f
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x1008d200]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x1008d200]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0x10093d40
mov dword [esp + 0x1c], ecx
push str.ModulusSize
mov ecx, ebx
mov dword [esp + 0x2c], 0x800
call edx
test al, al
jne 0x1004db30
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x20]
push ecx
push 0x10093d40
push str.KeySize
mov ecx, ebx
call edx
cmp dword [esp + 0x20], 0x10
jge 0x1004dbec
push 0x3a
mov esi, 0xf
push str.InvertibleRSAFunction:_specified_modulus_size_is_too_small
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], edi
mov byte [esp + 0xc8], 0
call fcn.10003c60
lea ecx, [esp + 0xdc]
mov dword [esp + 0x118], edi
call fcn.1005c764
push 0xffffffffffffffff
mov byte [esp + 0x11c], 1
push edi
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe8], vtable.CryptoPP::Exception.0
mov dword [esp + 0xf4], 1
mov dword [esp + 0x10c], esi
mov dword [esp + 0x108], edi
mov byte [esp + 0xf8], 0
call fcn.10003b70
push 0x100867e0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x11c], 0
push ecx
mov dword [esp + 0xe4], vtable.CryptoPP::InvalidArgument.0
call fcn.1005dc27
sub esp, 0x14
mov dword [esp + 0x2c], esp
mov esi, esp
cmp dword [0x1009879c], edi
jne 0x1004dc0c
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov dword [esi], vtable.CryptoPP::Integer.0
mov edi, 8
mov dword [esi + 8], 2
call fcn.1002e1d0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [eax], 0x11
mov esi, dword [esi + 0xc]
mov dword [esi + 4], ecx
push str.PublicExponent
lea esi, [esp + 0x48]
mov ecx, ebx
call fcn.1002f7f0
mov esi, dword [esp + 0x14]
add esi, 0xffffffe4
push esi
mov edi, eax
mov dword [esp + 0x11c], 4
call fcn.10044aa0
mov dword [esp + 0x118], 0xffffffff
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov edx, ecx
add edx, edx
mov ebx, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push ebx
cmp edx, 0x10
jb 0x1004dc90
call fcn.1005d890
jmp 0x1004dc95
call fcn.1005cffc
add esp, 4
cmp dword [0x1009879c], 0
jne 0x1004dcb0
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov edi, 8
mov dword [esp + 0x44], vtable.CryptoPP::Integer.0
mov dword [esp + 0x4c], 2
call fcn.1002e1d0
mov ebx, eax
xor edi, edi
mov dword [ebx], 3
mov dword [ebx + 4], edi
cmp dword [esi + 0x10], 1
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], edi
je 0x1004dd07
lea edx, [esp + 0x44]
mov eax, esi
call fcn.10047690
cmp eax, edi
jl 0x1004dd07
cmp dword [esi + 8], edi
jbe 0x1004dd07
mov eax, dword [esi + 0xc]
mov al, byte [eax]
and al, 1
mov byte [esp + 0x13], 0
jne 0x1004dd0c
mov byte [esp + 0x13], 1
xor eax, eax
mov edi, ebx
mov ecx, 2
push ebx
rep stosd dword es:[edi], eax
call fcn.1005cffc
add esp, 4
cmp byte [esp + 0x13], 0
je 0x1004dde2
push 0x2e
mov esi, 0xf
xor edi, edi
push str.InvertibleRSAFunction:_invalid_public_exponent
lea ecx, [esp + 0xc8]
mov dword [esp + 0xdc], esi
mov dword [esp + 0xd8], edi
mov byte [esp + 0xc8], 0
call fcn.10003c60
mov ebx, 7
lea ecx, [esp + 0xdc]
mov dword [esp + 0x118], ebx
call fcn.1005c764
push 0xffffffffffffffff
mov byte [esp + 0x11c], 8
push edi
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [esp + 0xf8]
mov dword [esp + 0xe8], vtable.CryptoPP::Exception.0
mov dword [esp + 0xf4], 1
mov dword [esp + 0x10c], esi
mov dword [esp + 0x108], edi
mov byte [esp + 0xf8], 0
call fcn.10003b70
push 0x100867e0
lea edx, [esp + 0xe0]
mov byte [esp + 0x11c], bl
push edx
mov dword [esp + 0xe4], vtable.CryptoPP::InvalidArgument.0
call fcn.1005dc27
push esi
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x9c], 0x1007e438
call fcn.10044850
mov dword [esp + 0x118], 9
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x48]
lea ecx, [esp + 0x98]
push eax
mov dword [esp + 0x20], ecx
call fcn.10058eb0
add esp, 8
mov byte [esp + 0x118], 0xa
movzx ecx, byte [eax + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
push str.PointerToPrimeSelector
mov edi, eax
call fcn.10050210
xor ebx, ebx
mov dword [esp + 0x24], vtable.CryptoPP::AlgorithmParameters.0
mov dword [esp + 0x28], ebx
mov byte [esp + 0x118], 0xb
mov cl, byte [eax + 8]
mov byte [esp + 0x2c], cl
mov esi, dword [eax + 4]
mov dword [eax + 4], ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x1004de74
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x28], esi
mov byte [esp + 0x118], 0xd
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
je 0x1004de90
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
lea eax, [esi + 0x44]
push eax
mov ecx, edi
call fcn.100457c0
test al, al
jne 0x1004dec5
lea esi, [esp + 0xdc]
call fcn.1002e270
push 0x100869e8
mov edx, esi
push edx
call fcn.1005dc27
lea eax, [esp + 0x24]
push eax
add esi, 0x58
push esi
mov ecx, edi
call fcn.100457c0
test al, al
jne 0x1004def2
lea esi, [esp + 0xdc]
call fcn.1002e270
push 0x100869e8
mov ecx, esi
push ecx
call fcn.1005dc27
cmp dword [0x1009879c], ebx
jne 0x1004df09
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov ebx, 2
lea edi, [ebx + 6]
mov dword [esp + 0x80], vtable.CryptoPP::Integer.0
mov dword [esp + 0x88], ebx
call fcn.1002e1d0
xor ecx, ecx
mov dword [eax], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [eax + 4], ecx
mov byte [esp + 0x118], 0x10
cmp dword [0x1009879c], ecx
jne 0x1004df64
call fcn.100432d0
mov dword [0x1009879c], 0x10038350
mov edi, 8
mov dword [esp + 0x30], vtable.CryptoPP::Integer.0
mov dword [esp + 0x38], ebx
call fcn.1002e1d0
mov ebx, eax
xor eax, eax
mov dword [ebx], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], eax
mov dword [ebx + 4], eax
mov ecx, esi
lea eax, [esp + 0x80]
lea esi, [esp + 0xc0]
mov byte [esp + 0x118], 0x13
call fcn.1002e720
mov edi, eax
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
add ecx, 0x44
lea esi, [esp + 0x58]
mov byte [esp + 0x118], 0x14
call fcn.1002e720
push eax
lea edx, [esp + 0x70]
push edx
mov ecx, edi
mov byte [esp + 0x120], 0x15
call fcn.1004d510
add esp, 8
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0xb0]
push eax
add ecx, 0xffffffe4
mov byte [esp + 0x120], 0x16
call fcn.10047c40
mov ecx, dword [esp + 0x14]
add ecx, 0x30
push ecx
mov edi, eax
mov byte [esp + 0x11c], 0x17
call fcn.10044aa0
mov ecx, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x1004e040
call fcn.1005d890
jmp 0x1004e045
call fcn.1005cffc
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov edx, ecx
add edx, edx
add esp, 4
mov esi, edi
xor eax, eax
add edx, edx
rep stosd dword es:[edi], eax
push esi
cmp edx, 0x10
jb 0x1004e069
call fcn.1005d890
jmp 0x1004e06e
call fcn.1005cffc
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x1004e095
call fcn.1005d890
jmp 0x1004e09a
call fcn.1005cffc
mov ecx, dword [esp + 0xcc]
mov edi, dword [esp + 0xd0]
xor eax, eax
mov edx, ecx
mov esi, edi
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [edx*4]
push esi
cmp ecx, 0x10
jb 0x1004e0c7
call fcn.1005d890
jmp 0x1004e0cc
call fcn.1005cffc
add esp, 4
xor eax, eax
mov edi, ebx
mov ecx, 2
push ebx
rep stosd dword es:[edi], eax
call fcn.1005cffc
mov edx, dword [esp + 0x20]
add esp, 4
mov edi, edx
xor eax, eax
mov byte [esp + 0x118], 0xd
mov ecx, 2
push edx
rep stosd dword es:[edi], eax
call fcn.1005cffc
add esp, 4
push 1
lea esi, [esp + 0xc4]
call fcn.10044940
mov edi, dword [esp + 0x14]
mov eax, esi
lea ecx, [edi + 0x44]
mov byte [esp + 0x118], 0x18
lea esi, [esp + 0x6c]
mov dword [esp + 0x18], ecx
call fcn.1002e720
lea edx, [esp + 0x58]
lea ecx, [edi + 0x30]
push edx
mov byte [esp + 0x11c], 0x19
mov dword [esp + 0x20], ecx
call fcn.1002e760
add esp, 4
mov ebx, edi
lea ecx, [ebx + 0x6c]
push ecx
mov edi, eax
mov byte [esp + 0x11c], 0x1a
call fcn.10044aa0
lea ecx, [esp + 0x58]
call fcn.10002480
mov ecx, esi
call fcn.10002480
lea ecx, [esp + 0xc0]
mov byte [esp + 0x118], 0xd
call fcn.10002480
push 1
lea esi, [esp + 0xc4]
call fcn.10044940
mov eax, esi
lea ecx, [ebx + 0x58]
lea esi, [esp + 0x6c]
mov byte [esp + 0x118], 0x1b
call fcn.1002e720
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x11c], 0x1c
call fcn.1002e760
add esp, 4
lea ecx, [ebx + 0x80]
push ecx
mov edi, eax
mov byte [esp + 0x11c], 0x1d
call fcn.10044aa0
lea ecx, [esp + 0x58]
call fcn.10002480
mov ecx, esi
call fcn.10002480
lea ecx, [esp + 0xc0]
mov byte [esp + 0x118], 0xd
call fcn.10002480
mov eax, dword [esp + 0x18]
lea edi, [ebx + 0x58]
lea esi, [esp + 0xc0]
call fcn.1002e740
lea edx, [ebx - 0x30]
push edx
mov edi, eax
mov byte [esp + 0x11c], 0x1e
call fcn.10044aa0
mov ecx, esi
mov byte [esp + 0x118], 0xd
call fcn.10002480
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc4]
push ecx
lea ecx, [ebx + 0x58]
call fcn.10047c40
add ebx, 0x94
push ebx
mov edi, eax
mov byte [esp + 0x11c], 0x1f
call fcn.10044aa0
lea ecx, [esp + 0xc0]
call fcn.10002480
mov byte [esp + 0x118], 9
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1004e27f
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea eax, [esp + 0x94]
call fcn.1004e2c0
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.1005c755
mov esp, ebp
pop ebp
ret 8