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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x5c
mov edi, dword [esp + 0x7c]
mov esi, dword [edi + 4]
test esi, esi
jle 0x4a467c
mov ebp, dword [edi]
mov ebx, dword [ebp]
test bl, 1
jne 0x4a468a
push 0x392
push str.external_boringssl_src_crypto_fipsmodule_bn_exponentiation.c
push 0x68
jmp 0x4a46c2
cmp dword [edi + 0xc], 0
je 0x4a469e
push 0x396
push str.external_boringssl_src_crypto_fipsmodule_bn_exponentiation.c
push 0x6d
jmp 0x4a46c2
mov eax, dword [esp + 0x74]
cmp dword [eax + 0xc], 0
jne 0x4a46b6
push edi
push eax
call sym.fastboot.exe_BN_ucmp
add esp, 8
test eax, eax
js 0x4a46da
push 0x39a
push str.external_boringssl_src_crypto_fipsmodule_bn_exponentiation.c
push 0x6b
push 0
push 3
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor ebx, ebx
mov eax, ebx
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 4]
test edx, edx
je 0x4a48d5
mov esi, dword [esp + 0x84]
xor eax, eax
test esi, esi
jne 0x4a4714
push dword [esp + 0x80]
push edi
mov esi, edx
call sym.fastboot.exe_BN_MONT_CTX_new_consttime
mov edx, esi
add esp, 8
test eax, eax
mov esi, eax
je 0x4a4b57
mov ebp, dword [esi + 0x18]
mov ecx, 6
cmp edx, 0x1d
mov dword [esp + 4], eax
jg 0x4a4745
mov ecx, 5
cmp edx, 9
jg 0x4a4745
xor eax, eax
test edx, edx
mov ecx, 4
setg al
cmp edx, 2
lea eax, [eax + eax + 1]
cmovle ecx, eax
mov ebx, 1
lea eax, [ebp + ebp]
mov edi, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x44], edx
shl ebx, cl
shl edi, cl
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x34], ebx
cmovge ebx, eax
add ebx, edi
lea eax, [ebx*4 + 0x40]
shl ebx, 2
push eax
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
mov dword [esp + 0x38], ebx
je 0x4a4ad5
mov ecx, eax
mov dword [esp + 0x18], esi
mov dword [esp + 8], eax
and ecx, 0x3f
neg ecx
test ebx, ebx
lea esi, [eax + ecx + 0x40]
je 0x4a47ad
push ebx
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
lea eax, [esi + edi*4]
mov edi, esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x1c], eax
lea eax, [eax + ebp*4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 2
lea eax, [esp + 0x1c]
push esi
mov ebp, dword [esp + 0x1c]
push ebp
push eax
call fcn.004a4cb0
add esp, 0xc
xor ebx, ebx
test eax, eax
mov dword [esp], edi
je 0x4a4c6c
lea eax, [esp + 0x48]
push esi
push ebp
push ebp
push dword [esp + 0x80]
push eax
call sym.fastboot.exe_BN_mod_mul_montgomery
add esp, 0x14
test eax, eax
je 0x4a4c6c
lea eax, [esp + 0x1c]
push eax
mov esi, dword [esp + 0x10]
push esi
mov edi, dword [esp + 8]
push edi
call fcn.0049e8f0
add esp, 0xc
lea ecx, [esp + 0x48]
lea eax, [edi + esi*4]
push ecx
push esi
push eax
call fcn.0049e8f0
add esp, 0xc
cmp dword [esp + 0x14], 2
jb 0x4a4b00
push dword [esp + 0x80]
push ebp
lea eax, [esp + 0x50]
push eax
push eax
lea edi, [esp + 0x2c]
push edi
call sym.fastboot.exe_BN_mod_mul_montgomery
add esp, 0x14
test eax, eax
je 0x4a4c6c
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
push edi
push dword [esp + 0x10]
push eax
call fcn.0049e8f0
add esp, 0xc
cmp dword [esp + 0x34], 4
jl 0x4a4b00
mov eax, dword [esp + 0xc]
mov edi, 3
lea ecx, [eax*4]
add eax, 4
mov dword [esp + 0x3c], eax
jmp 0x4a49ac
xor ebx, 1
cmp esi, 2
jl 0x4a4944
lea ecx, [esi - 1]
mov eax, 1
cmp ecx, 8
jb 0x4a4936
mov edx, ecx
movd xmm1, ebx
lea edi, [ebp + 0x14]
pxor xmm0, xmm0
and edx, 0xfffffff8
lea eax, [edx + 1]
mov ebx, edx
movdqu xmm2, xmmword [edi - 0x10]
movdqu xmm3, xmmword [edi]
add edi, 0x20
add ebx, 0xfffffff8
por xmm1, xmm2
por xmm0, xmm3
jne 0x4a48ff
por xmm0, xmm1
cmp ecx, edx
pshufd xmm1, xmm0, 0x4e
por xmm1, xmm0
pshufd xmm0, xmm1, 0xe5
por xmm0, xmm1
movd ebx, xmm0
je 0x4a4944
sub esi, eax
lea eax, [ebp + eax*4]
or ebx, dword [eax]
add eax, 4
dec esi
jne 0x4a493c
test ebx, ebx
je 0x4a4ae4
push 1
mov esi, dword [esp + 0x74]
push esi
call fcn.0049d890
add esp, 8
test eax, eax
je 0x4a46ce
mov dword [esi + 0xc], 0
mov ebx, 1
mov eax, dword [esi]
mov dword [eax], 1
mov dword [esi + 4], 1
jmp 0x4a46d0
push 0x13c
push str.external_boringssl_src_crypto_fipsmodule_bn_bn.c
push 0x6d
push 0
push 3
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
mov ecx, esi
inc edi
mov ebp, dword [esp + 0x18]
cmp edi, dword [esp + 0x34]
je 0x4a4b00
mov esi, ecx
push dword [esp + 0x80]
push ebp
lea eax, [esp + 0x24]
mov ecx, eax
push eax
lea eax, [esp + 0x54]
push eax
push ecx
call sym.fastboot.exe_BN_mod_mul_montgomery
add esp, 0x14
test eax, eax
je 0x4a4c6c
cmp dword [esp + 0x28], 0
jne 0x4a4983
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
mov edx, ebp
sub edx, eax
jbe 0x4a4a8c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp edx, 8
jb 0x4a4a62
mov eax, dword [esp + 0xc]
mov ecx, edx
pxor xmm0, xmm0
pxor xmm1, xmm1
and ecx, 0xfffffff8
mov dword [esp + 0x30], ecx
add eax, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x30]
movdqu xmm2, xmmword [ecx - 0x10]
movdqu xmm3, xmmword [ecx]
add ecx, 0x20
add eax, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4a4a25
por xmm1, xmm0
cmp edx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd ecx, xmm1
je 0x4a4a73
mov edx, dword [esp + 0x10]
sub ebp, eax
lea eax, [edx + eax*4]
or ecx, dword [eax]
add eax, 4
dec ebp
jne 0x4a4a6b
mov ebp, dword [esp + 0xc]
test ecx, ecx
je 0x4a4a8c
push 0x143
push str.external_boringssl_src_crypto_fipsmodule_bn_bn.c
push 0x66
jmp 0x4a498f
mov eax, edi
mov ecx, dword [esp]
imul eax, dword [esp + 0xc]
test esi, esi
lea eax, [ecx + eax*4]
mov ecx, esi
je 0x4a4ab5
push ecx
push 0
push eax
mov dword [esp + 0x1c], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov eax, dword [esp + 0x1c]
mov ecx, esi
add esp, 0xc
shl ebp, 2
test ebp, ebp
je 0x4a499d
push ebp
push dword [esp + 0x20]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, esi
add esp, 0xc
jmp 0x4a499d
mov eax, dword [esp + 4]
xor ebx, ebx
xor esi, esi
xor edi, edi
jmp 0x4a4c77
mov eax, dword [esp + 0x70]
mov ebx, 1
mov dword [eax + 0xc], 0
mov dword [eax + 4], 0
jmp 0x4a46d0
mov ebp, dword [esp + 0x44]
xor ebx, ebx
shl ebp, 5
dec ebp
mov eax, ebp
cdq
idiv dword [esp + 0x14]
test edx, edx
js 0x4a4b6c
mov edi, dword [esp]
inc edx
xor eax, eax
jmp 0x4a4b25
dec edx
or eax, esi
dec ebp
test edx, edx
jle 0x4a4b71
mov esi, eax
add esi, eax
test ebp, ebp
mov eax, 0
js 0x4a4b1d
mov eax, dword [esp + 0x78]
mov ecx, ebp
shr ecx, 5
cmp ecx, dword [eax + 4]
mov eax, 0
jae 0x4a4b1d
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov ecx, ebp
shr eax, cl
and eax, 1
jmp 0x4a4b1d
xor ebx, ebx
xor eax, eax
xor esi, esi
mov dword [esp + 0x38], 0
xor edi, edi
jmp 0x4a4c77
mov edi, dword [esp]
xor eax, eax
mov edx, dword [esp + 0xc]
mov esi, ebp
lea ecx, [esp + 0x1c]
push dword [esp + 0x14]
push eax
push edi
call fcn.004a4d40
add esp, 0xc
test eax, eax
je 0x4a4c3f
test esi, esi
mov eax, esi
js 0x4a4c49
xor ebx, ebx
xor ebp, ebp
xor edi, edi
jmp 0x4a4bb1
mov ecx, esi
inc ebp
dec ecx
or edi, eax
cmp ebp, dword [esp + 0x14]
mov esi, ecx
jae 0x4a4bfb
push dword [esp + 0x80]
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push eax
push eax
call sym.fastboot.exe_BN_mod_mul_montgomery
add esp, 0x14
test eax, eax
je 0x4a4c6c
mov eax, edi
add eax, edi
xor edi, edi
test esi, esi
js 0x4a4ba3
mov edx, dword [esp + 0x78]
mov ecx, esi
shr esi, 5
cmp esi, dword [edx + 4]
jae 0x4a4ba5
mov edx, dword [esp + 0x78]
mov edx, dword [edx]
mov edi, dword [edx + esi*4]
shr edi, cl
and edi, 1
jmp 0x4a4ba5
mov edx, dword [esp + 0xc]
lea ebp, [esp + 0x48]
mov ecx, ebp
push dword [esp + 0x14]
push edi
mov edi, dword [esp + 8]
push edi
call fcn.004a4d40
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x4a4c3f
push dword [esp + 0x80]
push dword [esp + 0x1c]
push ebp
lea eax, [esp + 0x28]
push eax
push eax
call sym.fastboot.exe_BN_mod_mul_montgomery
add esp, 0x14
test eax, eax
jne 0x4a4b91
mov eax, dword [esp + 4]
mov esi, dword [esp + 8]
jmp 0x4a4c77
push dword [esp + 0x80]
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x7c]
call sym.fastboot.exe_BN_from_montgomery
add esp, 0x10
xor ebx, ebx
test eax, eax
setne bl
mov eax, dword [esp + 4]
mov esi, dword [esp + 8]
mov edi, dword [esp]
push eax
call sym.fastboot.exe_BN_MONT_CTX_free
add esp, 4
test esi, esi
jne 0x4a4c95
test edi, edi
je 0x4a4c95
push dword [esp + 0x38]
push edi
call sym.fastboot.exe_OPENSSL_cleanse
add esp, 8
push esi
call sym.fastboot.exe_OPENSSL_free
add esp, 4
jmp 0x4a46d0