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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x70]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x74]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
nop word cs:[eax + eax]
nop
test eax, eax
jle 0x4af053
mov edx, dword [edi]
cmp dword [edx + eax*4 - 4], 0
lea eax, [eax - 1]
je 0x4af040
inc eax
mov ecx, eax
mov eax, dword [esi + 4]
mov edx, eax
mov edi, eax
sar edx, 0x1f
and edx, eax
nop
test edi, edi
jle 0x4af073
mov ebx, dword [esi]
cmp dword [ebx + edi*4 - 4], 0
lea edi, [edi - 1]
je 0x4af060
inc edi
mov edx, edi
test ecx, ecx
jle 0x4af088
mov edi, dword [esp + 0x70]
mov edi, dword [edi]
cmp dword [edi + ecx*4 - 4], 0
je 0x4af16e
test edx, edx
jle 0x4af099
mov ecx, dword [esi]
cmp dword [ecx + edx*4 - 4], 0
je 0x4af16e
test eax, eax
je 0x4af17c
mov ecx, dword [esi]
xor edx, edx
cmp eax, 8
mov edi, 0
jb 0x4af107
mov edx, eax
lea edi, [ecx + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and edx, 0xfffffff8
mov ebx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
movdqu xmm2, xmmword [edi - 0x10]
movdqu xmm3, xmmword [edi]
add edi, 0x20
add ebx, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4af0d0
por xmm1, xmm0
cmp eax, edx
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd edi, xmm1
je 0x4af118
sub eax, edx
lea ecx, [ecx + edx*4]
nop dword [eax]
or edi, dword [ecx]
add ecx, 4
dec eax
jne 0x4af110
test edi, edi
je 0x4af17c
cmp byte [ebp + 0x14], 0
jne 0x4af1af
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
cmp ecx, dword [ebp + 0xc]
jne 0x4af19e
lea eax, [ecx + ecx*2]
mov ebx, 0x20
shr eax, 1
test ecx, ecx
cmovne ebx, eax
cmp ebx, ecx
jbe 0x4af1a9
cmp ebx, 0x3fffffff
ja 0x4af1a9
lea eax, [ebx*4]
push eax
push dword [ebp + 4]
call sym.fastboot.exe_OPENSSL_realloc
add esp, 8
test eax, eax
je 0x4af1a9
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], ebx
mov ecx, dword [ebp + 8]
jmp 0x4af1a1
push 0xd5
push str.external_boringssl_src_crypto_fipsmodule_bn_div.c
push 0x6f
jmp 0x4af188
push 0xda
push str.external_boringssl_src_crypto_fipsmodule_bn_div.c
push 0x69
push 0
push 3
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor eax, eax
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 4]
mov dword [eax + ecx*4], edi
inc dword [ebp + 8]
jmp 0x4af1af
mov word [ebp + 0x14], 0x101
push ebp
call sym.fastboot.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x2c], eax
push ebp
call sym.fastboot.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0x18], eax
push ebp
call sym.fastboot.exe_BN_CTX_get
add esp, 4
cmp dword [esp + 0x68], 0
mov edi, eax
jne 0x4af1e8
push ebp
call sym.fastboot.exe_BN_CTX_get
add esp, 4
mov dword [esp + 0xc], eax
test edi, edi
mov dword [esp + 4], edi
je 0x4af7eb
cmp dword [esp + 0xc], 0
je 0x4af7eb
push esi
call sym.fastboot.exe_BN_num_bits
add esp, 4
mov ebx, eax
mov eax, 0x20
and ebx, 0x1f
sub eax, ebx
push eax
push esi
push dword [esp + 0xc]
call sym.fastboot.exe_BN_lshift
add esp, 0xc
test eax, eax
je 0x4af7eb
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x70]
mov eax, dword [ebp + 4]
mov ecx, eax
mov edx, eax
sar ecx, 0x1f
and ecx, eax
nop
test edx, edx
jle 0x4af25b
mov edi, dword [ebp]
cmp dword [edi + edx*4 - 4], 0
mov edi, dword [esp + 0x70]
lea edx, [edx - 1]
je 0x4af240
inc edx
mov dword [ebp + 4], edx
jmp 0x4af269
test eax, eax
mov dword [ebp + 4], ecx
js 0x4af269
mov dword [ebp + 0xc], 0
mov eax, 0x40
mov dword [ebp + 0xc], 0
sub eax, ebx
mov dword [esp + 0x40], eax
push eax
push edi
push dword [esp + 0x20]
call sym.fastboot.exe_BN_lshift
add esp, 0xc
test eax, eax
je 0x4af7eb
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
mov eax, ecx
mov edx, ecx
sar eax, 0x1f
and eax, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
test edx, edx
jle 0x4af2cc
mov edi, dword [ebx]
cmp dword [edi + edx*4 - 4], 0
lea edx, [edx - 1]
je 0x4af2b0
mov ecx, dword [esp + 4]
inc edx
mov dword [ebx + 4], edx
mov eax, edx
jmp 0x4af2de
test ecx, ecx
mov ecx, dword [esp + 4]
mov dword [ebx + 4], eax
js 0x4af2de
mov dword [ebx + 0xc], 0
mov dword [ebx + 0xc], 0
mov ecx, dword [ecx + 4]
lea edx, [ecx + 1]
cmp eax, edx
jle 0x4af3bd
inc eax
push eax
push ebx
call fcn.004acc80
add esp, 8
test eax, eax
je 0x4af7eb
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [eax + ecx*4], 0
mov edi, dword [edx + 4]
inc edi
mov dword [edx + 4], edi
mov ebp, edi
mov dword [esp + 0x30], 0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov ebx, dword [edx]
mov edx, dword [eax + ecx*4 - 4]
sub ebp, ecx
cmp ecx, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x4c], edx
je 0x4af351
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + ecx*4 - 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x70]
xor eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0xc], eax
lea eax, [ebp + 1]
push eax
push ecx
call fcn.004acc80
add esp, 8
test eax, eax
je 0x4af7eb
mov ecx, dword [esp + 0xc]
lea eax, [ebp - 1]
mov dword [ecx + 4], eax
lea eax, [ebp*4 - 4]
add eax, dword [ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x48], eax
push eax
push dword [esp + 0x30]
call fcn.004acc80
add esp, 8
test eax, eax
je 0x4af7eb
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x4af3fa
add dword [esp + 0x14], 0xfffffffc
jmp 0x4af401
add ecx, 2
push ecx
push ebx
call fcn.004acc80
add esp, 8
test eax, eax
je 0x4af7eb
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 4]
mov eax, dword [edx + 4]
nop dword [eax]
mov edi, dword [ebx + 4]
add edi, 2
cmp eax, edi
jge 0x4af31e
mov ecx, dword [edx]
mov dword [ecx + eax*4], 0
inc eax
jmp 0x4af3e0
mov dword [eax + 0xc], 0
cmp ebp, 2
jl 0x4af6d6
lea eax, [ebx + ebp*4]
lea ecx, [edi - 1]
lea edx, [ebx + edi*4 - 4]
shl edi, 2
xor esi, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
sub ecx, eax
lea eax, [eax*4]
sub eax, ebx
mov dword [esp + 0x44], ecx
lea ecx, [ebx + ecx*4]
sub eax, edi
add eax, 4
mov dword [esp + 0x3c], eax
jmp 0x4af46d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
inc esi
mov dword [eax], ebx
add eax, 0xfffffffc
add edx, 0xfffffffc
add dword [esp + 0x3c], 4
add ecx, 0xfffffffc
cmp esi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
jge 0x4af6d6
mov eax, dword [edx]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 4]
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp], 0xffffffff
cmp eax, ebx
je 0x4af4d6
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx - 8]
mov edi, dword [ecx - 4]
push 0
push ebx
push eax
push edi
call fcn.00499130
add esp, 0x10
mov ecx, ebx
mov dword [esp], eax
imul ecx, eax
mul dword [esp + 0x30]
sub edi, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp esi, eax
mov ecx, edi
sbb ecx, edx
jae 0x4af4d6
dec dword [esp]
sub eax, dword [esp + 0x30]
sbb edx, 0
add edi, ebx
jae 0x4af4c0
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4af5a5
mov eax, dword [esp + 0x2c]
mov ebp, dword [ebp]
xor esi, esi
xor ecx, ecx
cmp edi, 4
mov ebx, dword [eax]
jb 0x4af580
nop dword [eax + eax]
mov dword [esp + 8], ebp
mov ebp, ebx
mov ebx, dword [esp]
mov dword [esp + 0x38], edi
mov edx, dword [esp + 8]
mov eax, ebx
mul dword [edx]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 8]
mov edi, eax
add eax, ecx
mov dword [ebp], eax
mov eax, ebx
mul dword [edx + 4]
add edi, ecx
adc eax, dword [esp + 0x50]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 8]
mov dword [ebp + 4], eax
mov eax, ebx
setb cl
mul dword [edx + 8]
add cl, 0xff
adc eax, dword [esp + 0x34]
mov edi, edx
mov dword [ebp + 8], eax
mov eax, ebx
mov ebx, ebp
mov ebp, dword [esp + 8]
setb cl
mul dword [ebp + 0xc]
add cl, 0xff
adc eax, edi
mov edi, dword [esp + 0x38]
mov ecx, edx
adc ecx, 0
mov dword [ebx + 0xc], eax
add ebp, 0x10
add ebx, 0x10
add edi, 0xfffffffc
cmp edi, 4
jae 0x4af500
test edi, edi
je 0x4af5ac
nop
mov eax, dword [esp]
mul dword [ebp + esi*4]
add eax, ecx
adc edx, 0
mov dword [ebx + esi*4], eax
inc esi
cmp edi, esi
mov ecx, edx
jne 0x4af580
mov ebp, dword [esp + 4]
mov ebx, dword [esp]
mov edi, dword [esp + 0x10]
mov ecx, edx
jmp 0x4af5b7
mov ebx, dword [esp]
xor ecx, ecx
jmp 0x4af5b7
mov ebp, dword [esp + 4]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov dword [eax + edi*4], ecx
mov eax, dword [esp + 0x28]
add eax, 0xfffffffc
push dword [esp + 0x48]
push dword [edx]
push eax
mov dword [esp + 0x34], eax
push eax
call fcn.004ad610
add esp, 0x10
test eax, eax
je 0x4af43e
dec ebx
test edi, edi
je 0x4af43e
mov ecx, dword [ebp]
xor edx, edx
cmp edi, 4
mov dword [esp], ebx
jae 0x4af606
mov esi, dword [esp + 0x28]
xor ebx, ebx
xor ebp, ebp
jmp 0x4af6a0
xor ebp, ebp
xor esi, esi
xor ebx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 8]
mov edx, ebp
add ebx, dword [edi + esi]
adc edx, 0
add ebx, dword [eax + esi]
mov dword [edi + esi], ebx
adc edx, 0
xor ebx, ebx
add edx, dword [edi + esi + 4]
mov eax, dword [eax + esi + 4]
mov dword [esp + 0x34], eax
lea eax, [edx + eax]
setb bl
mov dword [edi + esi + 4], eax
mov eax, dword [esp + 8]
mov ecx, dword [eax + esi + 8]
xor eax, eax
add ecx, dword [edi + esi + 8]
setb al
add edx, dword [esp + 0x34]
mov edx, dword [esp + 8]
adc ebx, ecx
mov dword [edi + esi + 8], ebx
setb cl
xor ebx, ebx
mov edx, dword [edx + esi + 0xc]
add edx, dword [edi + esi + 0xc]
setb bl
add cl, 0xff
adc eax, edx
mov dword [edi + esi + 0xc], eax
mov edi, dword [esp + 0x38]
adc ebx, 0
add esi, 0x10
add edi, 0xfffffffc
cmp edi, 4
jae 0x4af610
mov ecx, dword [esp + 8]
test edi, edi
je 0x4af6b8
add ecx, esi
sub esi, dword [esp + 0x3c]
xor edx, edx
nop
add ebx, dword [esi + edx*4]
adc ebp, 0
add ebx, dword [ecx + edx*4]
mov dword [esi + edx*4], ebx
mov ebx, ebp
adc ebx, 0
inc edx
xor ebp, ebp
cmp edi, edx
jne 0x4af6a0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
test ebx, ebx
je 0x4af6ce
inc dword [edx]
mov ebx, dword [esp]
jmp 0x4af44e
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x6c]
mov eax, dword [ebx + 4]
mov ecx, eax
mov edx, eax
sar ecx, 0x1f
and ecx, eax
test edx, edx
jle 0x4af704
mov esi, dword [ebx]
cmp dword [esi + edx*4 - 4], 0
lea edx, [edx - 1]
je 0x4af6ee
inc edx
mov dword [ebx + 4], edx
jmp 0x4af712
test eax, eax
mov dword [ebx + 4], ecx
js 0x4af712
mov dword [ebx + 0xc], 0
test edi, edi
je 0x4af7b5
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 0xc]
push dword [esp + 0x40]
push ebx
push edi
call sym.fastboot.exe_BN_rshift
add esp, 0xc
test eax, eax
je 0x4af7eb
mov ebx, dword [esp + 0x6c]
mov ebp, dword [esp + 0xc]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4af7b5
mov ecx, dword [ebx]
xor edx, edx
cmp eax, 8
mov edi, 0
jb 0x4af7a1
mov edx, eax
lea edi, [ecx + 0x10]
pxor xmm0, xmm0
pxor xmm1, xmm1
and edx, 0xfffffff8
mov ebx, edx
movdqu xmm2, xmmword [edi - 0x10]
movdqu xmm3, xmmword [edi]
add edi, 0x20
add ebx, 0xfffffff8
por xmm0, xmm2
por xmm1, xmm3
jne 0x4af766
por xmm1, xmm0
mov ebx, dword [esp + 0x6c]
cmp eax, edx
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd edi, xmm1
je 0x4af7ae
sub eax, edx
lea ecx, [ecx + edx*4]
or edi, dword [ecx]
add ecx, 4
dec eax
jne 0x4af7a6
test edi, edi
je 0x4af7b5
mov dword [ebx + 0xc], esi
mov eax, dword [ebp + 4]
mov edi, dword [esp + 0x78]
mov ecx, eax
mov edx, eax
sar ecx, 0x1f
and ecx, eax
test edx, edx
jle 0x4af813
mov esi, dword [ebp]
cmp dword [esi + edx*4 - 4], 0
lea edx, [edx - 1]
je 0x4af7c5
inc edx
mov eax, 1
mov dword [ebp + 4], edx
cmp byte [edi + 0x14], 0
jne 0x4af196
jmp 0x4af7fb
mov edi, dword [esp + 0x78]
xor eax, eax
cmp byte [edi + 0x14], 0
jne 0x4af196
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
lea esi, [edx - 1]
mov dword [edi + 8], esi
mov ecx, dword [ecx + edx*4 - 4]
mov dword [edi + 0x10], ecx
jmp 0x4af196
test eax, eax
mov dword [ebp + 4], ecx
js 0x4af821
mov dword [ebp + 0xc], 0
mov eax, 1
cmp byte [edi + 0x14], 0
jne 0x4af196
jmp 0x4af7fb