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

Disassembly:
push 0xffffffffffffffff
push 0x602b2e
mov eax, dword fs:[0]
push eax
sub esp, 0xac
push ebx
push ebp
push esi
push edi
mov eax, dword [0x69a450]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x18], 0
cmp dword [0x6ed6ac], 0
jne 0x508293
call fcn.004ff680
mov dword [0x6ed6ac], 0x4f4e40
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004dc670
add esp, 4
push 8
call fcn.004d6190
mov esi, eax
mov dword [esp + 0x30], 0
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esi], 1
mov dword [esi + 4], 0
cmp dword [ebp + 0x10], 1
je 0x5082e6
lea eax, [esp + 0x1c]
mov ecx, ebp
push eax
call fcn.005041f0
jmp 0x5082e9
or eax, 0xffffffff
test eax, eax
mov edi, esi
mov ecx, 2
setle bl
xor eax, eax
rep stosd dword es:[edi], eax
push esi
call fcn.005c663b
add esp, 4
test bl, bl
je 0x50830d
xor al, al
jmp 0x508ab4
cmp dword [ebp + 8], 0
jbe 0x508a3a
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
and al, 1
je 0x508a3a
cmp dword [0x6ed6ac], 0
jne 0x50833c
call fcn.004ff680
mov dword [0x6ed6ac], 0x4f4e40
push 2
mov dword [esp + 0x60], vtable.CryptoPP::Integer.0
mov dword [esp + 0x68], 2
call fcn.004dc670
add esp, 4
push 8
call fcn.004d6190
add esp, 4
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], 0
mov dword [eax], 3
mov dword [eax + 4], 0
mov dword [esp + 0xc8], 0
xor ebx, ebx
cmp dword [0x6ed6ac], 0
jne 0x50839e
call fcn.004ff680
mov dword [0x6ed6ac], 0x4f4e40
push 2
mov dword [esp + 0x4c], vtable.CryptoPP::Integer.0
mov dword [esp + 0x54], 2
call fcn.004dc670
add esp, 4
push 8
call fcn.004d6190
add esp, 4
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 0
mov dword [eax], 4
mov dword [eax + 4], 0
lea eax, [esp + 0x30]
mov byte [esp + 0xc8], 1
push eax
lea ecx, [esp + 0x60]
call fcn.004d8e60
lea ecx, [esp + 0x48]
mov byte [esp + 0xc8], 2
push ecx
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004d90a0
add esp, 0xc
mov edx, ebp
mov byte [esp + 0xc8], 3
mov ecx, eax
call fcn.0050a400
mov edx, dword [esp + 0x78]
cmp eax, 1
mov esi, dword [esp + 0x7c]
mov ecx, edx
mov dword [esp + 0x18], eax
sete byte [esp + 0x17]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50844d
call fcn.005fa578
jmp 0x508452
call fcn.005c663b
mov edx, dword [esp + 0x3c]
xor eax, eax
mov esi, dword [esp + 0x40]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x508479
call fcn.005fa578
jmp 0x50847e
call fcn.005c663b
mov byte [esp + 0xcc], 0
add esp, 4
mov edx, dword [esp + 0x54]
xor eax, eax
mov edi, edx
mov ecx, 2
rep stosd dword es:[edi], eax
push edx
call fcn.005c663b
add esp, 4
cmp byte [esp + 0x17], 0
je 0x5084d0
inc ebx
cmp ebx, 0x40
jne 0x5084b9
mov ecx, ebp
call fcn.005046d0
test al, al
jne 0x5084d7
lea ecx, [esp + 0x5c]
call fcn.005029b0
lea ecx, [esp + 0x5c]
call fcn.005029b0
jmp 0x508386
cmp dword [esp + 0x18], 0
jne 0x5084de
xor bl, bl
jmp 0x508a03
push 1
lea ecx, [esp + 0x74]
call fcn.00500e40
lea eax, [esp + 0x70]
mov byte [esp + 0xc8], 4
push eax
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.004d9070
add esp, 0xc
lea ecx, [esp + 0x70]
mov byte [esp + 0xc8], 6
call fcn.004d8e80
mov edi, dword [esp + 0x90]
xor esi, esi
mov edx, dword [esp + 0x8c]
mov eax, esi
shr eax, 5
cmp eax, edx
jae 0x50853f
mov eax, dword [edi + eax*4]
mov ecx, esi
and ecx, 0x1f
shr eax, cl
and al, 1
jne 0x508542
inc esi
jmp 0x508528
push esi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x8c]
call fcn.004f4cf0
lea eax, [esp + 0x5c]
mov byte [esp + 0xc8], 7
push ebp
push eax
lea edx, [esp + 0x78]
lea ecx, [esp + 0x50]
call fcn.0050a750
add esp, 8
mov byte [esp + 0xc8], 8
cmp dword [0x6ed6ac], 0
jne 0x508592
call fcn.004ff680
mov dword [0x6ed6ac], 0x4f4e40
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004dc670
add esp, 4
push 8
call fcn.004d6190
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [eax], 2
mov dword [eax + 4], 0
lea eax, [esp + 0x1c]
mov byte [esp + 0xc8], 9
push eax
lea eax, [esp + 0x4c]
mov ebx, 1
push eax
mov dword [esp + 0x20], ebx
call fcn.004d8ec0
add esp, 8
test al, al
jne 0x508646
push 2
lea ecx, [esp + 0x34]
call fcn.00500e40
lea eax, [esp + 0x30]
mov dword [esp + 0xc8], 0xa
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x1c], 3
push ebp
push eax
call fcn.004d90a0
add esp, 0xc
mov ebx, 7
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004d8ec0
add esp, 8
mov byte [esp + 0x17], 0
test al, al
je 0x50864b
mov byte [esp + 0x17], 1
test bl, 4
je 0x508685
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ebp, dword [esp + 0xa4]
mov ecx, edx
mov edi, ebp
and ebx, 0xfffffffb
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebp
cmp eax, 0x10
jb 0x50867d
call fcn.005fa578
jmp 0x508682
call fcn.005c663b
add esp, 4
test bl, 2
je 0x5086b9
mov edx, dword [esp + 0x38]
xor eax, eax
mov ebp, dword [esp + 0x3c]
mov ecx, edx
mov edi, ebp
and ebx, 0xfffffffd
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebp
cmp eax, 0x10
jb 0x5086b1
call fcn.005fa578
jmp 0x5086b6
call fcn.005c663b
add esp, 4
mov dword [esp + 0xc8], 8
test bl, 1
je 0x5086e1
mov edx, dword [esp + 0x28]
xor eax, eax
mov edi, edx
mov ecx, 2
rep stosd dword es:[edi], eax
push edx
call fcn.005c663b
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x508974
mov ebp, 1
cmp esi, ebp
jbe 0x508970
lea esp, [esp]
cmp dword [0x6ed6ac], 0
jne 0x508718
call fcn.004ff680
mov dword [0x6ed6ac], 0x4f4e40
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004dc670
add esp, 4
push 8
call fcn.004d6190
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [eax], 2
mov dword [eax + 4], 0
lea eax, [esp + 0xac]
mov byte [esp + 0xc8], 0xb
push eax
lea ecx, [esp + 0x4c]
call fcn.004d8e60
lea ecx, [esp + 0x1c]
mov byte [esp + 0xc8], 0xc
push ecx
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004d90a0
add esp, 0xc
push dword [esp + 0x44]
mov byte [esp + 0xcc], 0xd
push eax
lea eax, [esp + 0xa0]
push eax
call fcn.004d9130
add esp, 0xc
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0xcc], 0xe
call fcn.005010e0
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ebx, dword [esp + 0xa4]
mov ecx, edx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x5087e2
call fcn.005fa578
jmp 0x5087e7
call fcn.005c663b
mov edx, dword [esp + 0x3c]
xor eax, eax
mov ebx, dword [esp + 0x40]
add esp, 4
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x50880e
call fcn.005fa578
jmp 0x508813
call fcn.005c663b
mov edx, dword [esp + 0xb8]
xor eax, eax
mov ebx, dword [esp + 0xbc]
add esp, 4
mov edi, ebx
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x508840
call fcn.005fa578
jmp 0x508845
call fcn.005c663b
mov byte [esp + 0xcc], 8
add esp, 4
mov edx, dword [esp + 0x28]
xor eax, eax
mov edi, edx
mov ecx, 2
rep stosd dword es:[edi], eax
push edx
call fcn.005c663b
add esp, 4
lea ecx, [esp + 0x30]
push 2
call fcn.00500e40
lea eax, [esp + 0x30]
mov byte [esp + 0xc8], 0xf
push eax
push dword [esp + 0x48]
lea eax, [esp + 0xb4]
push eax
call fcn.004d90a0
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004d8ec0
mov edx, dword [esp + 0xbc]
add esp, 8
mov ebx, dword [esp + 0xb8]
mov ecx, edx
mov byte [esp + 0x17], al
mov edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push ebx
cmp ecx, 0x10
jb 0x5088d0
call fcn.005fa578
jmp 0x5088d5
call fcn.005c663b
mov byte [esp + 0xcc], 8
xor eax, eax
mov edx, dword [esp + 0x3c]
add esp, 4
mov ebx, dword [esp + 0x3c]
mov ecx, edx
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push ebx
cmp eax, 0x10
jb 0x508904
call fcn.005fa578
jmp 0x508909
call fcn.005c663b
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x508974
push 2
lea ecx, [esp + 0x34]
call fcn.00500e40
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004d8ec0
mov ebx, dword [esp + 0x44]
add esp, 8
mov edx, dword [esp + 0x38]
mov edi, ebx
mov byte [esp + 0x17], al
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [edx*4]
push ebx
cmp ecx, 0x10
jb 0x508958
call fcn.005fa578
jmp 0x50895d
call fcn.005c663b
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x508970
inc ebp
cmp ebp, esi
jb 0x508700
xor bl, bl
jmp 0x508976
mov bl, 1
mov edx, dword [esp + 0x50]
xor eax, eax
mov esi, dword [esp + 0x54]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x50899a
call fcn.005fa578
jmp 0x50899f
call fcn.005c663b
mov edx, dword [esp + 0x7c]
xor eax, eax
mov esi, dword [esp + 0x80]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5089c9
call fcn.005fa578
jmp 0x5089ce
call fcn.005c663b
mov edx, dword [esp + 0x90]
xor eax, eax
mov esi, dword [esp + 0x94]
add esp, 4
mov edi, esi
mov ecx, edx
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x5089fb
call fcn.005fa578
jmp 0x508a00
call fcn.005c663b
add esp, 4
mov edx, dword [esp + 0x64]
xor eax, eax
mov esi, dword [esp + 0x68]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [edx*4]
push esi
cmp eax, 0x10
jb 0x508a2d
call fcn.005fa578
add esp, 4
jmp 0x508ab2
call fcn.005c663b
add esp, 4
jmp 0x508ab2
cmp dword [0x6ed6ac], 0
jne 0x508a52
call fcn.004ff680
mov dword [0x6ed6ac], 0x4f4e40
push 2
mov dword [esp + 0x20], vtable.CryptoPP::Integer.0
mov dword [esp + 0x28], 2
call fcn.004dc670
add esp, 4
push 8
call fcn.004d6190
mov esi, eax
mov dword [esp + 0x30], 0
add esp, 4
mov dword [esp + 0x28], esi
lea eax, [esp + 0x1c]
mov dword [esi], 2
push eax
push ebp
mov dword [esi + 4], 0
call fcn.004d8ec0
mov bl, al
mov edi, esi
xor eax, eax
mov ecx, 2
rep stosd dword es:[edi], eax
push esi
call fcn.005c663b
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb8
ret